Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_quant_localdef.hpp
1/*
2##############################################################################
3# file: ms_quant_localdef.hpp #
4# 'msparser' toolkit #
5# Encapsulates \c local_definition 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_localdef.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_LOCALDEF_HPP
18#define MS_QUANT_LOCALDEF_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_quant_specificity; // forward declaration
32 class ms_quant_composition; // forward declaration
33 class ms_xml_schema; // forward declaration
34
41 class MS_MASCOTRESFILE_API ms_quant_localdef: public ms_xml_IValidatable
42 {
43 friend class msparser_internal::ms_quant_xmlloader;
44
45 public:
48
51
53 virtual ~ms_quant_localdef();
54
56 void defaultValues();
57
59 void copyFrom(const ms_quant_localdef* right);
60
61#ifndef SWIG
63 ms_quant_localdef& operator=(const ms_quant_localdef& right);
64#endif
66 virtual std::string getSchemaType() const;
67
69 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
70
72 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
73
74
76 int getNumberOfSpecificities() const;
77
79 void clearSpecificities();
80
82 void appendSpecificity(const ms_quant_specificity *specificity);
83
85 const ms_quant_specificity * getSpecificity(const int idx) const;
86
88 bool updateSpecificity(const int idx, const ms_quant_specificity* specificity);
89
91 bool deleteSpecificity(const int idx);
92
94 std::string getSpecificitySchemaType() const;
95
96
98 bool haveDelta() const;
99
101 const ms_quant_composition* getDelta() const;
102
104 void setDelta(const ms_quant_composition *delta);
105
107 void dropDelta();
108
110 std::string getDeltaSchemaType() const;
111
112
114 int getNumberOfIgnores() const;
115
117 void clearIgnores();
118
120 void appendIgnore(const ms_quant_composition *ignore);
121
123 const ms_quant_composition * getIgnore(const int idx) const;
124
126 bool updateIgnore(const int idx, const ms_quant_composition* ignore);
127
129 bool deleteIgnore(const int idx);
130
132 std::string getIgnoreSchemaType() const;
133
134
136 bool haveTitle() const;
137
139 std::string getTitle() const;
140
142 void setTitle(const char* value);
143
145 void dropTitle();
146
148 std::string getTitleSchemaType() const;
149
150
151 private:
152 // elements
153 typedef std::vector< ms_quant_specificity* > specificity_vector;
154 specificity_vector _specificities;
155
156 ms_quant_composition* _pDelta;
157 bool _delta_set;
158
159 typedef std::vector< ms_quant_composition* > composition_vector;
160 composition_vector _ignores;
161
162 // attributes
163 std::string _title;
164 bool _title_set;
165
166 }; // class ms_quant_localdef
167 // end of config_group
169
170} // namespace matrix_science
171
172#endif // MS_QUANT_LOCALDEF_HPP
173
174/*------------------------------- End of File -------------------------------*/
Describes the compositionType type in quantitation.xml.
Definition: ms_quant_composition.hpp:120
Represents a local_definition element.
Definition: ms_quant_localdef.hpp:42
Describes a specificity element in quantitation.xml (Unimod style specificity).
Definition: ms_quant_specificity.hpp:45