Matrix Science header

ms_quant_normalisation.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_quant_normalisation.hpp                                           #
00004 # 'msparser' toolkit                                                         #
00005 # Encapsulates normalisation-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_normalisation.hpp,v $
00012  * @(#)$Revision: 1.9 $
00013  * @(#)$Date: 2010/09/06 16:18:57 $
00014 ##############################################################################
00015  */
00016 
00017 #ifndef MS_QUANT_NORMALISATION_HPP
00018 #define MS_QUANT_NORMALISATION_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     class ms_quant_normalisation_peptides; // forward declaration
00045     class ms_quant_normalisation_proteins; // forward declaration
00046 
00052 
00053 
00056     class MS_MASCOTRESFILE_API ms_quant_normalisation: public ms_quant_parameters
00057     {
00058         friend class msparser_internal::ms_quant_xmlloader;
00059 
00060     public:
00062         ms_quant_normalisation();
00063 
00065         ms_quant_normalisation(const ms_quant_normalisation& src);
00066 
00068         virtual ~ms_quant_normalisation();
00069 
00071         void defaultValues();
00072 
00074         void copyFrom(const ms_quant_normalisation* right);
00075 
00076 #ifndef SWIG
00077 
00078         ms_quant_normalisation& operator=(const ms_quant_normalisation& right);
00079 #endif
00080 
00081         virtual std::string getSchemaType() const;
00082 
00084         virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
00085 
00087         virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
00088 
00089 
00091         bool haveMethod() const;
00092 
00094         std::string getMethod() const;
00095 
00097         void setMethod(const char* value);
00098 
00100         void dropMethod();
00101 
00103         std::string getMethodSchemaType() const;
00104 
00105 
00107         bool havePeptides() const;
00108 
00110         const ms_quant_normalisation_peptides* getPeptides() const;
00111 
00113         void setPeptides(const ms_quant_normalisation_peptides* peptides);
00114 
00116         void dropPeptides();
00117 
00119         std::string getPeptidesSchemaType() const;
00120 
00121 
00123         bool haveProteins() const;
00124 
00126         const ms_quant_normalisation_proteins* getProteins() const;
00127 
00129         void setProteins(const ms_quant_normalisation_proteins* proteins);
00130 
00132         void dropProteins();
00133 
00135         std::string getProteinsSchemaType() const;
00136 
00137     private:
00138 
00139         std::string _method;
00140         bool _method_set;
00141 
00142         ms_quant_normalisation_peptides *_pPeptides;
00143         bool _peptides_set;
00144 
00145         ms_quant_normalisation_proteins *_pProteins;
00146         bool _proteins_set;
00147     }; // class ms_quant_normalisation
00148  // end of config_group
00150 
00151 } // namespace matrix_science
00152 
00153 #endif // MS_QUANT_NORMALISATION_HPP
00154 
00155 /*------------------------------- End of File -------------------------------*/
00156 
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:51