Matrix Science header

ms_distiller_search_status_list.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_distiller_search_status_list.hpp
00004 # 'msparser' toolkit
00005 # An extracted ion chromatogram
00006 ##############################################################################
00007 # COPYRIGHT NOTICE
00008 # Copyright 1998-2014 Matrix Science Limited  All Rights Reserved.
00009 #
00010 ##############################################################################
00011  * @(#)$Source: /vol/cvsroot/parser/inc/ms_distiller_search_status_list.hpp,v $
00012  * @(#)$Revision: 1.6 $
00013  * @(#)$Date: 2016/05/19 16:07:07 $
00014 ##############################################################################
00015  */
00016 
00017 #ifndef MS_DISTILLER_SEARCH_STATUS_LIST_HPP
00018 #define MS_DISTILLER_SEARCH_STATUS_LIST_HPP
00019 
00020 #ifdef _WIN32
00021 #pragma warning(disable:4251)   // Don't want all classes to be exported
00022 #pragma warning(disable:4786)   // Debug symbols too long
00023 #   ifndef _MATRIX_USE_STATIC_LIB
00024 #       ifdef MS_MASCOTRESFILE_EXPORTS
00025 #           define MS_MASCOTRESFILE_API __declspec(dllexport)
00026 #       else
00027 #           define MS_MASCOTRESFILE_API __declspec(dllimport)
00028 #       endif
00029 #   else
00030 #       define MS_MASCOTRESFILE_API
00031 #   endif
00032 #else
00033 #   define MS_MASCOTRESFILE_API
00034 #endif
00035 
00036 // Includes from the standard template library
00037 #include <string>
00038 
00039 namespace msparser_internal
00040 {
00041     class ms_XMLHelper;
00042     class ms_XMLElement;
00043 }
00044 
00045 namespace matrix_science
00046 {
00047     class ms_input_stream;
00048 
00049     //=========================================================================
00055      class ms_distiller_search_status;
00056 
00058 
00061     class MS_MASCOTRESFILE_API ms_distiller_search_status_list : 
00062         public matrix_science::ms_errors
00063     {
00064         public:
00065             ms_distiller_search_status_list();
00066             ms_distiller_search_status_list(const ms_distiller_search_status_list & src);
00067 #ifndef SWIG
00068             ms_distiller_search_status_list& operator=(const ms_distiller_search_status_list & right);
00069 #endif
00070             void copyFrom(const ms_distiller_search_status_list * right);
00071 
00073             static std::string getSearchStatusListStreamName();
00074 
00076             int getNumSearches() const;
00078             const ms_distiller_search_status & getSearch(int index) const; // (index 1..n)
00079 
00081             bool loadXml(const char * xmlSchemaPath, const std::string & xmlText);
00083             bool loadXmlFile(const char * xmlSchemaPath, const std::string & xmlFilename);
00085             bool loadXmlStream(const char * xmlSchemaPath, matrix_science::ms_input_string_stream * xmlStream);
00086 
00087         private:
00088             bool extractXml(msparser_internal::ms_XMLHelper & helper);
00089 
00090             std::vector<ms_distiller_search_status> searches_;
00091     };
00092  // end of quantitation_group
00094     //=========================================================================
00095 
00096 } // namespace matrix_science
00097 
00098 #endif // MS_DISTILLER_SEARCH_STATUS_LIST_HPP
00099 
00100 /*------------------------------- End of File -------------------------------*/
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:50