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: /vol/cvsroot/parser/inc/ms_umod_neutralloss.hpp,v $
00012  * @(#)$Revision: 1.8 $
00013  * @(#)$Date: 2010/09/06 16:18:57 $
00014 ##############################################################################
00015  */
00016 
00017 #ifndef MS_UMOD_NEUTRALLOSS_HPP
00018 #define MS_UMOD_NEUTRALLOSS_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 #include <string>
00037 #include <vector>
00038 
00039 // forward declarations
00040 namespace msparser_internal {
00041     class ms_umod_xmlloader;
00042 }
00043 
00044 namespace matrix_science {
00045 
00046     class ms_quant_neutralloss; // forward declaration
00047     class ms_quant_pepneutralloss; // forward declaration
00048     class ms_umod_configfile;
00049     class ms_xml_schema; // forward declaration
00050 
00056 
00057 
00062     class MS_MASCOTRESFILE_API ms_umod_neutralloss: public ms_umod_composition
00063     {
00064         friend class msparser_internal::ms_umod_xmlloader;
00065 
00066     public:
00068         ms_umod_neutralloss();
00069 
00071         ms_umod_neutralloss(const ms_umod_neutralloss& src);
00072 
00074         ms_umod_neutralloss(const ms_quant_neutralloss& src, const ms_umod_configfile& umodFile);
00075 
00077         ms_umod_neutralloss(const ms_quant_pepneutralloss& src, const ms_umod_configfile& umodFile);
00078 
00080         virtual ~ms_umod_neutralloss();
00081 
00083         void defaultValues();
00084 
00086         void copyFrom(const ms_umod_neutralloss* right);
00087 
00089         void copyFrom(const ms_quant_neutralloss* right, const ms_umod_configfile& umodFile);
00090 
00092         void copyFrom(const ms_quant_pepneutralloss* right, const ms_umod_configfile& umodFile);
00093 
00094 #ifndef SWIG
00095 
00096         ms_umod_neutralloss& operator=(const ms_umod_neutralloss& right);
00097 #endif
00098 
00099         virtual std::string getSchemaType() const;
00100 
00102         virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
00103 
00105         virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
00106 
00107 
00109         bool haveFlag() const;
00110 
00112         bool isFlag() const;
00113 
00115         void setFlag(const bool value);
00116 
00118         void dropFlag();
00119 
00121         std::string getFlagSchemaType() const;
00122 
00123     private:
00124 
00125         bool _flag;
00126         bool _flag_set;
00127     }; // class ms_umod_neutralloss
00128  // end of config_group
00130 
00131 } // namespace matrix_science
00132 
00133 #endif // MS_UMOD_NEUTRALLOSS_HPP
00134 
00135 /*------------------------------- End of File -------------------------------*/
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:51