Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_umod_elemref.hpp
1/*
2##############################################################################
3# file: ms_umod_elemref.hpp #
4# 'msparser' toolkit #
5# Represents 'elemref_t' type in 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_elemref.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_ELEMREF_HPP
18#define MS_UMOD_ELEMREF_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_quant_element; // forward declaration;
32 class ms_xml_schema; // forward declaration
33
40
44 class MS_MASCOTRESFILE_API ms_umod_elemref: public ms_xml_IValidatable
45 {
46 friend class msparser_internal::ms_umod_xmlloader;
47 friend class ms_umod_configfile;
48
49 public:
52
55
58
59
61 virtual ~ms_umod_elemref();
62
64 void defaultValues();
65
67 void copyFrom(const ms_umod_elemref* right);
68
70 void copyFrom(const ms_quant_element* right);
71
72#ifndef SWIG
74 ms_umod_elemref& operator=(const ms_umod_elemref& right);
75#endif
77 virtual std::string getSchemaType() const;
78
80 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
81
83 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
84
85
87 bool haveSymbol() const;
88
90 std::string getSymbol() const;
91
93 void setSymbol(const char* value);
94
96 void dropSymbol();
97
99 std::string getSymbolSchemaType() const;
100
101
103 bool haveNumber() const;
104
106 int getNumber() const;
107
109 void setNumber(const int value);
110
112 void dropNumber();
113
115 std::string getNumberSchemaType() const;
116
117 private:
118
119 std::string _symbol;
120 bool _symbol_set;
121
122 int _number;
123 bool _number_set;
124 }; // class ms_umod_elemref
125 // end of config_group
127
128} // namespace matrix_science
129
130#endif // MS_UMOD_ELEMREF_HPP
131
132/*------------------------------- End of File -------------------------------*/
The element sub-element of compositionType in quantitation.xml.
Definition: ms_quant_composition.hpp:40
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