Matrix Science header

ms_quant_neutralloss.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_quant_neutralloss.hpp                                             #
00004 # 'msparser' toolkit                                                         #
00005 # Encapsulates "NeutralLoss" 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_neutralloss.hpp,v $
00012  * @(#)$Revision: 1.8 $
00013  * @(#)$Date: 2010/09/06 16:18:57 $
00014 ##############################################################################
00015  */
00016 
00017 #ifndef MS_QUANT_NEUTRALLOSS_HPP
00018 #define MS_QUANT_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 // forward declarations
00037 namespace msparser_internal {
00038     class ms_quant_xmlloader;
00039 }
00040 
00041 namespace matrix_science {
00042 
00043     class ms_xml_schema; // forward declaration
00044 
00050 
00051     class MS_MASCOTRESFILE_API ms_quant_neutralloss: public ms_quant_composition
00052     {
00053         friend class msparser_internal::ms_quant_xmlloader;
00054     public:
00056         ms_quant_neutralloss();
00057 
00059         ms_quant_neutralloss(const ms_quant_neutralloss& src);
00060 
00062         virtual ~ms_quant_neutralloss();
00063 
00065         void defaultValues();
00066 
00068         void copyFrom(const ms_quant_neutralloss* right);
00069 
00070 #ifndef SWIG
00071 
00072         ms_quant_neutralloss& operator=(const ms_quant_neutralloss& right);
00073 #endif
00074 
00075         virtual std::string getSchemaType() const;
00076 
00078         virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
00079 
00081         virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
00082         
00083 
00085         bool haveFlag() const;
00086 
00088         bool isFlag() const;
00089 
00091         void setFlag(const bool flag);
00092 
00094         void dropFlag();
00095 
00097         std::string getFlagSchemaType() const;
00098 
00099     private:
00100 
00101         bool _flag;
00102         bool _flag_set;
00103 
00104     }; // class ms_quant_neutralloss
00105  // end of config_group
00107 
00108 } // namespace matrix_science
00109 
00110 #endif // MS_QUANT_NEUTRALLOSS_HPP
00111 
00112 /*------------------------------- End of File -------------------------------*/
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:51