Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_quant_correction.hpp
1/*
2##############################################################################
3# file: ms_quant_correction.hpp #
4# 'msparser' toolkit #
5# Encapsulates \c correction element from "quantitation.xml"-file #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2006 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_quant_correction.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_CORRECTION_HPP
18#define MS_QUANT_CORRECTION_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_correction: public ms_xml_IValidatable
40 {
41 friend class msparser_internal::ms_quant_xmlloader;
42
43 public:
46
49
51 virtual ~ms_quant_correction();
52
54 void defaultValues();
55
57 void copyFrom(const ms_quant_correction* right);
58
59#ifndef SWIG
61 ms_quant_correction& operator=(const ms_quant_correction& right);
62#endif
63
65 virtual std::string getSchemaType() const;
66
68 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
69
71 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
72
73
75 bool haveShift() const;
76
78 int getShift() const;
79
81 void setShift(const int value);
82
84 void dropShift();
85
87 std::string getShiftSchemaType() const;
88
89
91 bool haveType() const;
92
94 std::string getType() const;
95
97 void setType(const char* value);
98
100 void dropType();
101
103 std::string getTypeSchemaType() const;
104
105
107 bool haveElement() const;
108
110 std::string getElement() const;
111
113 void setElement(const char* value);
114
116 void dropElement();
117
119 std::string getElementSchemaType() const;
120
121
123 std::string getContent() const;
124
126 void setContent(const char* value);
127
129 std::string getContentSchemaType() const;
130
131 private:
132 int _shift;
133 bool _shift_set;
134
135 std::string _type;
136 bool _type_set;
137
138 std::string _element;
139 bool _element_set;
140
141 std::string _content;
142
143 }; // class ms_quant_correction
144 // end of config_group
146
147} // namespace matrix_science
148
149#endif // MS_QUANT_CORRECTION_HPP
150
151/*------------------------------- End of File -------------------------------*/
Represents a correction element.
Definition: ms_quant_correction.hpp:40