Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_umod_xref.hpp
1/*
2##############################################################################
3# file: ms_umod_xref.hpp #
4# 'msparser' toolkit #
5# Represents 'xref_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_xref.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_XREF_HPP
18#define MS_UMOD_XREF_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_xml_schema; // forward declaration
32
39 class MS_MASCOTRESFILE_API ms_umod_xref: public ms_xml_IValidatable
40 {
41 friend class msparser_internal::ms_umod_xmlloader;
42
43 public:
46
48 ms_umod_xref(const ms_umod_xref& src);
49
51 virtual ~ms_umod_xref();
52
54 void defaultValues();
55
57 void copyFrom(const ms_umod_xref* right);
58
59#ifndef SWIG
61 ms_umod_xref& operator=(const ms_umod_xref& right);
62#endif
64 virtual std::string getSchemaType() const;
65
67 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
68
70 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
71
72
74 bool haveText() const;
75
77 std::string getText() const;
78
80 void setText(const char* value);
81
83 void dropText();
84
86 std::string getTextSchemaType() const;
87
88
90 bool haveSource() const;
91
93 std::string getSource() const;
94
96 void setSource(const char* value);
97
99 void dropSource();
100
102 std::string getSourceSchemaType() const;
103
104
106 bool haveUrl() const;
107
109 std::string getUrl() const;
110
112 void setUrl(const char* value);
113
115 void dropUrl();
116
118 std::string getUrlSchemaType() const;
119
121 bool isSameAs(const ms_umod_xref& right) const;
122
123 private:
124
125 std::string _text;
126 bool _text_set;
127
128 std::string _source;
129 bool _source_set;
130
131 std::string _url;
132 bool _url_set;
133 }; // class ms_umod_xref
134 // end of config_group
136
137} // namespace matrix_science
138
139#endif // MS_UMOD_XREF_HPP
140
141/*------------------------------- End of File -------------------------------*/
Represents the cross references objects in unimod.xml.
Definition: ms_umod_xref.hpp:40