Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_umod_aminoacid.hpp
1/*
2##############################################################################
3# file: ms_umod_aminoacid.hpp #
4# 'msparser' toolkit #
5# Represents 'amino acid' object from unimod.xml file #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2006 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_umod_aminoacid.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_UMOD_AMINOACID_HPP
18#define MS_UMOD_AMINOACID_HPP
19
20
21#include <string>
22#include <vector>
23
24// forward declarations
25namespace msparser_internal {
26 class ms_umod_xmlloader;
27}
28
29namespace matrix_science {
30
31 class ms_umod_elemref; // forward declaration
32 class ms_xml_schema; // forward declaration
33
40 class MS_MASCOTRESFILE_API ms_umod_aminoacid: public ms_xml_IValidatable
41 {
42 friend class msparser_internal::ms_umod_xmlloader;
43 friend class ms_umod_configfile;
44
45 public:
48
51
53 virtual ~ms_umod_aminoacid();
54
56 void defaultValues();
57
59 void copyFrom(const ms_umod_aminoacid* right);
60
61#ifndef SWIG
63 ms_umod_aminoacid& operator=(const ms_umod_aminoacid& 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 getNumberOfElemRefs() const;
77
79 void clearElemRefs();
80
82 void appendElemRef(const ms_umod_elemref *elemref);
83
85 const ms_umod_elemref* getElemRef(const int idx) const;
86
88 bool updateElemRef(const int idx, const ms_umod_elemref *elemref);
89
91 bool deleteElemRef(const int idx);
92
94 std::string getElemRefSchemaType() const;
95
96
98 bool haveTitle() const;
99
101 std::string getTitle() const;
102
104 void setTitle(const char* value);
105
107 void dropTitle();
108
110 std::string getTitleSchemaType() const;
111
112
114 bool haveThreeLetter() const;
115
117 std::string getThreeLetter() const;
118
120 void setThreeLetter(const char* value);
121
123 void dropThreeLetter();
124
126 std::string getThreeLetterSchemaType() const;
127
128
130 bool haveFullName() const;
131
133 std::string getFullName() const;
134
136 void setFullName(const char* value);
137
139 void dropFullName();
140
142 std::string getFullNameSchemaType() const;
143
144
146 bool haveAvgeMass() const;
147
149 double getAvgeMass() const;
150
152 void setAvgeMass(const double value);
153
155 void dropAvgeMass();
156
158 std::string getAvgeMassSchemaType() const;
159
160
162 bool haveMonoMass() const;
163
165 double getMonoMass() const;
166
168 void setMonoMass(const double value);
169
171 void dropMonoMass();
172
174 std::string getMonoMassSchemaType() const;
175
176 private:
177
178 typedef std::vector< ms_umod_elemref* > elemref_vector;
179 elemref_vector _elemRefs;
180
181 std::string _title;
182 bool _title_set;
183
184 std::string _threeLetter;
185 bool _threeLetter_set;
186
187 std::string _fullName;
188 bool _fullName_set;
189
190 double _avgeMass;
191 bool _avgeMass_set;
192
193 double _monoMass;
194 bool _monoMass_set;
195 }; // class ms_umod_aminoacid
196 // end of config_group
198
199} // namespace matrix_science
200
201#endif // MS_UMOD_AMINOACID_HPP
202
203/*------------------------------- End of File -------------------------------*/
Represents an "amino acid" object in unimod.xml.
Definition: ms_umod_aminoacid.hpp:41
This class represents the file unimod.xml.
Definition: ms_umod_configfile.hpp:54
Represents the elemref_t type in unimod.xml.
Definition: ms_umod_elemref.hpp:45