Matrix Science header

ms_peptide_quant_ratio.hpp

00001 /*
00002 ##############################################################################
00003 # file: ms_peptide_quant_ratio.hpp                                           #
00004 # 'msparser' toolkit                                                         #
00005 # Peptide intensity ratio for relative quantitation                          #
00006 ##############################################################################
00007 # COPYRIGHT NOTICE                                                           #
00008 # Copyright 1998-2012 Matrix Science Limited  All Rights Reserved.           #
00009 #                                                                            #
00010 ##############################################################################
00011 #     $Author: villek $ #
00012 #       $Date: 2013/10/03 16:22:19 $ #
00013 #   $Revision: 1.7 $ #
00014 # $NoKeywords::                                                            $ #
00015 ##############################################################################
00016 */
00017 
00018 #ifndef MS_PEPTIDE_QUANT_RATIO_HPP
00019 #define MS_PEPTIDE_QUANT_RATIO_HPP
00020 
00021 #ifdef _WIN32
00022 #pragma warning(disable:4251)   // Don't want all classes to be exported
00023 #pragma warning(disable:4786)   // Debug symbols too long
00024 #   ifndef _MATRIX_USE_STATIC_LIB
00025 #       ifdef MS_MASCOTRESFILE_EXPORTS
00026 #           define MS_MASCOTRESFILE_API __declspec(dllexport)
00027 #       else
00028 #           define MS_MASCOTRESFILE_API __declspec(dllimport)
00029 #       endif
00030 #   else
00031 #       define MS_MASCOTRESFILE_API
00032 #   endif
00033 #else
00034 #   define MS_MASCOTRESFILE_API
00035 #endif
00036 
00037 // Includes from the standard template library
00038 #include <string>
00039 #include <vector>
00040 
00041 namespace matrix_science {
00042     class ms_peptide_quant_key;
00043 
00049 
00050 
00075     class MS_MASCOTRESFILE_API ms_peptide_quant_ratio
00076     {
00077         public:
00079             ms_peptide_quant_ratio(const ms_peptide_quant_key &key, const std::string &ratioName, bool isInfinite = false);
00080 
00082             ms_peptide_quant_ratio(const ms_peptide_quant_key &key, const std::string &ratioName, double value, bool isExcluded = false, double weight = 1.0);
00083 
00085             ms_peptide_quant_ratio(const ms_peptide_quant_ratio& src);
00086 
00088             ~ms_peptide_quant_ratio();
00089 
00090 #ifndef SWIG
00091 
00092             ms_peptide_quant_ratio& operator=(const ms_peptide_quant_ratio& right);
00093 #endif
00094 
00095             void copyFrom(const ms_peptide_quant_ratio *src);
00096 
00098             bool isMissing() const;
00099 
00101             bool isInfinite() const;
00102 
00104             double getValue() const;
00105 
00107             ms_peptide_quant_key getKey() const;
00108 
00110             std::string getRatioName() const;
00111 
00113             bool isExcluded() const;
00114 
00116             double getWeight() const;
00117 
00118         private:
00119             bool isMissing_;
00120             bool isInfinite_;
00121             double value_;
00122 
00123             ms_peptide_quant_key *peptideQuantKey_;
00124             std::string ratioName_;
00125 
00126             bool isExcluded_;
00127             double weight_;
00128     }; // end of quantitation_group
00130 }   // matrix_science namespace
00131 
00132 #endif // MS_PEPTIDE_QUANT_RATIO_HPP
00133 
00134 /*------------------------------- End of File -------------------------------*/
Copyright © 2016 Matrix Science Ltd.  All Rights Reserved. Generated on Fri Jun 2 2017 01:44:51