Matrix Science header

ms_quant_precursor.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_quant_precursor.hpp                                               #
00004 # 'msparser' toolkit                                                         #
00005 # Encapsulates precursor-element from "quantitation.xml"-file                #
00006 ##############################################################################
00007 # COPYRIGHT NOTICE                                                           #
00008 # Copyright 1998-2006 Matrix Science Limited  All Rights Reserved.           #
00009 #                                                                            #
00010 ##############################################################################
00011  * @(#)$Source: /vol/cvsroot/parser/inc/ms_quant_precursor.hpp,v $
00012  * @(#)$Revision: 1.17 $
00013  * @(#)$Date: 2016/05/19 16:07:07 $
00014 ##############################################################################
00015  */
00016 
00017 #ifndef MS_QUANT_PRECURSOR_HPP
00018 #define MS_QUANT_PRECURSOR_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 // forward declarations
00037 namespace msparser_internal {
00038     class ms_quant_xmlloader;
00039     class ms_quant_precursor_impl;
00040     class ms_quant_configfile_impl;
00041     class ms_quant_protocol_impl;
00042 }
00043 
00044 namespace matrix_science {
00045 
00046     class ms_xml_schema; // forward declaration
00047 
00053 
00054 
00057     class MS_MASCOTRESFILE_API ms_quant_precursor: public ms_quant_parameters
00058     {
00059         friend class msparser_internal::ms_quant_xmlloader;
00060         friend class msparser_internal::ms_quant_configfile_impl;
00061         friend class msparser_internal::ms_quant_protocol_impl;
00062     public:
00064         ms_quant_precursor();
00065 
00067         ms_quant_precursor(const ms_quant_precursor& src);
00068 
00070         virtual ~ms_quant_precursor();
00071 
00073         void defaultValues();
00074 
00076         void copyFrom(const ms_quant_precursor* right);
00077 
00078 #ifndef SWIG
00079 
00080         ms_quant_precursor& operator=(const ms_quant_precursor& right);
00081 #endif
00082 
00083         virtual std::string getSchemaType() const;
00084 
00086         virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
00087 
00089         virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
00090 
00091 
00093         bool haveAllowMassTimeMatch() const;
00094 
00096         bool isAllowMassTimeMatch() const;
00097 
00099         void setAllowMassTimeMatch(const bool value);
00100 
00102         void dropAllowMassTimeMatch();
00103 
00105         std::string getAllowMassTimeMatchSchemaType() const;
00106 
00107 
00109         bool haveAllowElutionShift() const;
00110 
00112         bool isAllowElutionShift() const;
00113 
00115 
00120         //void setAllowElutionShift(const bool value);
00121 
00123         void dropAllowElutionShift();
00124 
00126         std::string getAllowElutionShiftSchemaType() const;
00127 
00128 
00130         bool haveAllChargeStates() const;
00131 
00133         bool isAllChargeStates() const;
00134 
00136 
00141         //void setAllChargeStates(const bool value);
00142 
00144         void dropAllChargeStates();
00145 
00147         std::string getAllChargeStatesSchemaType() const;
00148 
00149     private:
00150 
00151         msparser_internal::ms_quant_precursor_impl * m_pImpl;
00152     }; // class ms_quant_precursor
00153  // end of config_group
00155 
00156 } // namespace matrix_science
00157 
00158 #endif // MS_QUANT_PRECURSOR_HPP
00159 
00160 /*------------------------------- End of File -------------------------------*/
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:51