17#ifndef MS_UMOD_MODIFICATION_HPP
18#define MS_UMOD_MODIFICATION_HPP
25namespace msparser_internal {
26 class ms_umod_xmlloader;
29namespace matrix_science {
31 class ms_umod_composition;
32 class ms_umod_specificity;
34 class ms_quant_localdef;
35 class ms_quant_unmodified;
36 class ms_umod_configfile;
37 class ms_quant_component;
48 friend class msparser_internal::ms_umod_xmlloader;
91 virtual std::string getSchemaType()
const;
94 virtual std::string validateShallow(
const ms_xml_schema *pSchemaFileObj)
const;
97 virtual std::string validateDeep(
const ms_xml_schema *pSchemaFileObj)
const;
101 std::vector< std::string > getModFileList(
const unsigned int flags = ms_umod_configfile::MODFILE_FLAGS_ALL)
const;
104 int findSpecGroup(
const char* modFileName)
const;
107 int getNumberOfSpecificities()
const;
110 void clearSpecificities();
122 const ms_umod_specificity * getSpecificityBySiteAndPosition(
const char *site,
const char *position)
const;
128 bool deleteSpecificity(
const int idx);
131 std::string getSpecificitySchemaType()
const;
135 bool haveDelta()
const;
147 std::string getDeltaSchemaType()
const;
151 int getNumberOfIgnores()
const;
166 bool deleteIgnore(
const int idx);
169 std::string getIgnoreSchemaType()
const;
173 int getNumberOfAltNames()
const;
176 void clearAltNames();
179 void appendAltName(
const char *alt_name);
182 std::string getAltName(
const int idx)
const;
185 bool updateAltName(
const int idx,
const char *alt_name);
188 bool deleteAltName(
const int idx);
191 std::string getAltNameSchemaType()
const;
195 int getNumberOfXrefs()
const;
207 bool updateXref(
const int idx,
const ms_umod_xref *xref);
210 bool deleteXref(
const int idx);
213 std::string getXrefSchemaType()
const;
217 bool haveMiscNotes()
const;
220 std::string getMiscNotes()
const;
223 void setMiscNotes(
const char* value);
226 void dropMiscNotes();
229 std::string getMiscNotesSchemaType()
const;
233 bool haveTitle()
const;
236 std::string getTitle()
const;
239 void setTitle(
const char* value);
245 std::string getTitleSchemaType()
const;
249 bool haveFullName()
const;
252 std::string getFullName()
const;
255 void setFullName(
const char* value);
261 std::string getFullNameSchemaType()
const;
265 bool haveApproved()
const;
268 bool isApproved()
const;
271 void setApproved(
const bool value);
277 std::string getApprovedSchemaType()
const;
281 bool haveUsernameOfPoster()
const;
284 std::string getUsernameOfPoster()
const;
287 void setUsernameOfPoster(
const char* value);
290 void dropUsernameOfPoster();
293 std::string getUsernameOfPosterSchemaType()
const;
297 bool haveGroupOfPoster()
const;
300 std::string getGroupOfPoster()
const;
303 void setGroupOfPoster(
const char* value);
306 void dropGroupOfPoster();
309 std::string getGroupOfPosterSchemaType()
const;
313 bool haveDateTimePosted()
const;
316 std::string getDateTimePosted()
const;
319 void setDateTimePosted(
const char* value);
322 void dropDateTimePosted();
325 std::string getDateTimePostedSchemaType()
const;
329 bool haveDateTimeModified()
const;
332 std::string getDateTimeModified()
const;
335 void setDateTimeModified(
const char* value);
338 void dropDateTimeModified();
341 std::string getDateTimeModifiedSchemaType()
const;
344 bool haveRecordID()
const;
347 std::string getRecordID()
const;
350 void setRecordID(
const char* value);
356 std::string getRecordIDSchemaType()
const;
359 bool isPrivate()
const;
362 void setPrivate(
bool b);
365 bool isPrivacyEnabled()
const;
368 void setPrivacyEnabled(
bool b);
372 typedef std::vector< ms_umod_specificity * > specificity_vector;
373 specificity_vector _specificities;
378 typedef std::vector< ms_umod_composition* > ignore_vector;
379 ignore_vector _ignores;
381 typedef std::vector< std::string > altNames_vector;
382 altNames_vector _altnames;
384 typedef std::vector< ms_umod_xref* > xref_vector;
387 std::string _miscNotes;
393 std::string _fullName;
399 std::string _usernameOfPoster;
400 bool _usernameOfPoster_set;
402 std::string _groupOfPoster;
403 bool _groupOfPoster_set;
405 std::string _dateTimePosted;
406 bool _dateTimePosted_set;
408 std::string _dateTimeModified;
409 bool _dateTimeModified_set;
411 std::string _recordID;
415 bool _isPrivacyEnabled;
An object of this class represent a single component element in quantitation.xml.
Definition: ms_quant_component.hpp:48
Represents a local_definition element.
Definition: ms_quant_localdef.hpp:42
Describes an unmodified element in quantitation.xml.
Definition: ms_quant_unmodified.hpp:39
Represents the composition type in unimod.xml.
Definition: ms_umod_composition.hpp:48
This class represents the file unimod.xml.
Definition: ms_umod_configfile.hpp:54
Represents a modif object in unimod.xml.
Definition: ms_umod_modification.hpp:47
Represents modification specificity objects in unimod.xml.
Definition: ms_umod_specificity.hpp:43
Represents the cross references objects in unimod.xml.
Definition: ms_umod_xref.hpp:40