Matrix Science header

ms_umod_neutralloss.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_umod_neutralloss.hpp                                              #
00004 # 'msparser' toolkit                                                         #
00005 # Represents 'NeutralLoss' element in unimod.xml file                        #
00006 ##############################################################################
00007 # COPYRIGHT NOTICE                                                           #
00008 # Copyright 1998-2006 Matrix Science Limited  All Rights Reserved.           #
00009 #                                                                            #
00010 ##############################################################################
00011  * @(#)$Source: parser/inc/ms_umod_neutralloss.hpp $
00012  * @(#)$Revision: 0bb105c754f1d83ce7437808601186f321028555 | MSPARSER_REL_2_8_1-0-gea32989045 $
00013  * @(#)$Date: 2019-04-17 12:17:44 +0100 $
00014 ##############################################################################
00015  */
00016 
00017 #ifndef MS_UMOD_NEUTRALLOSS_HPP
00018 #define MS_UMOD_NEUTRALLOSS_HPP
00019 
00020 
00021 #include <string>
00022 #include <vector>
00023 
00024 // forward declarations
00025 namespace msparser_internal {
00026     class ms_umod_xmlloader;
00027 }
00028 
00029 namespace matrix_science {
00030 
00031     class ms_quant_neutralloss; // forward declaration
00032     class ms_quant_pepneutralloss; // forward declaration
00033     class ms_umod_configfile;
00034     class ms_xml_schema; // forward declaration
00035 
00041 
00042 
00047     class MS_MASCOTRESFILE_API ms_umod_neutralloss: public ms_umod_composition
00048     {
00049         friend class msparser_internal::ms_umod_xmlloader;
00050 
00051     public:
00053         ms_umod_neutralloss();
00054 
00056         ms_umod_neutralloss(const ms_umod_neutralloss& src);
00057 
00059         ms_umod_neutralloss(const ms_quant_neutralloss& src, const ms_umod_configfile& umodFile);
00060 
00062         ms_umod_neutralloss(const ms_quant_pepneutralloss& src, const ms_umod_configfile& umodFile);
00063 
00065         virtual ~ms_umod_neutralloss();
00066 
00068         void defaultValues();
00069 
00071         void copyFrom(const ms_umod_neutralloss* right);
00072 
00074         void copyFrom(const ms_quant_neutralloss* right, const ms_umod_configfile& umodFile);
00075 
00077         void copyFrom(const ms_quant_pepneutralloss* right, const ms_umod_configfile& umodFile);
00078 
00079 #ifndef SWIG
00080 
00081         ms_umod_neutralloss& operator=(const ms_umod_neutralloss& right);
00082 #endif
00083 
00084         virtual std::string getSchemaType() const;
00085 
00087         virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
00088 
00090         virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
00091 
00092 
00094         bool haveFlag() const;
00095 
00097         bool isFlag() const;
00098 
00100         void setFlag(const bool value);
00101 
00103         void dropFlag();
00104 
00106         std::string getFlagSchemaType() const;
00107 
00108 
00110         bool haveCode() const;
00111 
00113         std::string getCode() const;
00114 
00116         void setCode(const char* value);
00117 
00119         void dropCode();
00120 
00122         std::string getCodeSchemaType() const;
00123 
00124 
00126         bool havePairsWith() const;
00127 
00129         std::string getPairsWith() const;
00130 
00132         void setPairsWith(const char* value);
00133 
00135         void dropPairsWith();
00136 
00138         std::string getPairsWithSchemaType() const;
00139 
00140 
00142         bool haveDescription() const;
00143 
00145         std::string getDescription() const;
00146 
00148         void setDescription(const char* value);
00149 
00151         void dropDescription();
00152 
00154         std::string getDescriptionSchemaType() const;
00155 
00156     private:
00157 
00158         bool _flag;
00159         bool _flag_set;
00160         
00161         std::string _code;
00162         bool _code_set;
00163         
00164         std::string _pairsWith;
00165         bool _pairsWith_set;
00166         
00167         std::string _description;
00168         bool _description_set;
00169     }; // class ms_umod_neutralloss
00170  // end of config_group
00172 
00173 } // namespace matrix_science
00174 
00175 #endif // MS_UMOD_NEUTRALLOSS_HPP
00176 
00177 /*------------------------------- End of File -------------------------------*/

Copyright © 2022 Matrix Science Ltd.  All Rights Reserved. Generated on Thu Mar 31 2022 01:12:30