Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_quant_numerator.hpp
1/*
2##############################################################################
3# file: ms_quant_numerator.hpp #
4# 'msparser' toolkit #
5# Encapsulates "numerator_component" and \c denominator_component elements #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2006 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_quant_numerator.hpp $
12 * @(#)$Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2018-07-30 16:23:53 +0100 $
14##############################################################################
15 */
16
17#ifndef MS_QUANT_NUMERATOR_HPP
18#define MS_QUANT_NUMERATOR_HPP
19
20
21#include <string>
22#include <vector>
23
24// forward declarations
25namespace msparser_internal {
26 class ms_quant_xmlloader;
27}
28
29namespace matrix_science {
30
31 class ms_xml_schema; // forward declaration
32
39 class MS_MASCOTRESFILE_API ms_quant_numerator: public ms_xml_IValidatable
40 {
41 friend class msparser_internal::ms_quant_xmlloader;
42
43 public:
46
49
51 virtual ~ms_quant_numerator();
52
54 void defaultValues();
55
57 void copyFrom(const ms_quant_numerator* right);
58
59#ifndef SWIG
61 ms_quant_numerator& operator=(const ms_quant_numerator& right);
62#endif
64 virtual std::string getSchemaType() const;
65
67 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
68
70 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
71
72
74 bool haveName() const;
75
77 std::string getName() const;
78
80 void setName(const char* value);
81
83 void dropName();
84
86 std::string getNameSchemaType() const;
87
88
90 bool haveCoefficient() const;
91
93 std::string getCoefficient() const;
94
96 void setCoefficient(const char* value);
97
99 void dropCoefficient();
100
102 std::string getCoefficientSchemaType() const;
103
104
106 std::string getContent() const;
107
109 void setContent(const char* value);
110
112 std::string getContentSchemaType() const;
113
114 private:
115 std::string _name;
116 bool _name_set;
117
118 std::string _coefficient;
119 bool _coefficient_set;
120
121 std::string _value;
122
123 }; // class ms_quant_numerator
124 // end of config_group
126
127} // namespace matrix_science
128
129#endif // MS_QUANT_NUMERATOR_HPP
130
131/*------------------------------- End of File -------------------------------*/
Represent numerator_component and denominator_component elements.
Definition: ms_quant_numerator.hpp:40