Matrix Science header

ms_distiller_master_project.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_distiller_master_project.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_master_project.hpp,v $
00012  * @(#)$Revision: 1.8 $
00013  * @(#)$Date: 2016/05/19 16:07:07 $
00014 ##############################################################################
00015  */
00016 
00017 #ifndef MS_DISTILLER_MASTER_PROJECT_HPP
00018 #define MS_DISTILLER_MASTER_PROJECT_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 
00040 namespace msparser_internal
00041 {
00042     class ms_XMLHelper;
00043     class ms_XMLElement;
00044 }
00045 
00046 namespace matrix_science
00047 {
00048     //=========================================================================
00054      class ms_distiller_master_search;
00055      class ms_distiller_sub_project;
00056 
00058 
00061     class MS_MASCOTRESFILE_API ms_distiller_master_project : 
00062         public matrix_science::ms_errors
00063     {
00064         public:
00065             ms_distiller_master_project();
00066             virtual ~ms_distiller_master_project() { }
00067 
00068             ms_distiller_master_project(const ms_distiller_master_project & src);
00069 #ifndef SWIG
00070             ms_distiller_master_project& operator=(const ms_distiller_master_project & right);
00071 #endif
00072             void copyFrom(const ms_distiller_master_project * right);
00073 
00075             static std::string getMasterProjectStreamName();
00076 
00078             virtual int getNumSubprojects() const;
00080             virtual const ms_distiller_sub_project & getSubproject(int index) const;
00081 
00083             virtual int getNumSearches() const;
00085             virtual const ms_distiller_master_search & getSearch(int index) const;
00086 
00088             virtual bool loadXml(const char * xmlSchemaPath, std::string xmlText);
00090             virtual bool loadXmlFile(const char * xmlSchemaPath, std::string xmlFilename);
00092             virtual bool loadXmlStream(const char * xmlSchemaPath, matrix_science::ms_input_string_stream * xmlStream);
00093 
00094         private:
00095             bool extractXml(msparser_internal::ms_XMLHelper & helper);
00096 
00097             std::vector<ms_distiller_sub_project> subprojects;
00098             std::vector<ms_distiller_master_search> searches;
00099     };
00100  // end of quantitation_group
00102     //=========================================================================
00103 
00104 } // namespace matrix_science
00105 
00106 #endif // MS_DISTILLER_MASTER_PROJECT_HPP
00107 
00108 /*------------------------------- End of File -------------------------------*/
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:50