Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_crosslinking_method.hpp
1/*
2##############################################################################
3# file: ms_crosslinking_method.hpp #
4# 'msparser' toolkit #
5# Represents a method object in crosslinking.xml file #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2019 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_crosslinking_method.hpp $
12 * @(#)$Revision: 20373858f9250b373e137e3d5de4992e9e7d19e6 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2019-01-08 14:42:05 +0000 $
14##############################################################################
15 */
16
17#ifndef MS_CROSSLINKING_METHOD_HPP
18#define MS_CROSSLINKING_METHOD_HPP
19
20
21#include <string>
22#include <vector>
23
24// forward declarations
25namespace msparser_internal {
26 class ms_crosslinking_xmlloader;
27}
28
29namespace matrix_science {
30 class ms_crosslinking_linkers; // forward declaration
31 class ms_crosslinking_accessions; // forward declaration
32 class ms_crosslinking_scope; // forward declaration
33 class ms_crosslinking_filters; // forward declaration
34 class ms_crosslinking_settings; // forward declaration
35 class ms_crosslinking_configfile; // forward declaration
36 class ms_xml_schema; // forward declaration
37
44
49 class MS_MASCOTRESFILE_API ms_crosslinking_method: public ms_xml_IValidatable
50 {
51 friend class msparser_internal::ms_crosslinking_xmlloader;
52 friend class ms_crosslinking_configfile;
53
54 public:
57
60
63
65 void defaultValues();
66
68 void copyFrom(const ms_crosslinking_method* right);
69
70#ifndef SWIG
72 ms_crosslinking_method& operator=(const ms_crosslinking_method& right);
73#endif
74
76 virtual std::string getSchemaType() const;
77
79 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
80
82 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
83
84
86 bool haveName() const;
87
89 std::string getName() const;
90
92 void setName(const char* value);
93
95 void dropName();
96
98 std::string getNameSchemaType() const;
99
100
102 bool haveDescription() const;
103
105 std::string getDescription() const;
106
108 void setDescription(const char* value);
109
111 void dropDescription();
112
114 std::string getDescriptionSchemaType() const;
115
116
118 bool haveStrategy() const;
119
121 std::string getStrategy() const;
122
124 void setStrategy(const char* value);
125
127 void dropStrategy();
128
130 std::string getStrategySchemaType() const;
131
132
134 bool haveLinkers() const;
135
137 const ms_crosslinking_linkers* getLinkers() const;
138
140 void setLinkers(const ms_crosslinking_linkers* linkers);
141
143 void dropLinkers();
144
146 std::string getLinkersSchemaType() const;
147
148
150 bool haveAccessions() const;
151
153 const ms_crosslinking_accessions* getAccessions() const;
154
156 void setAccessions(const ms_crosslinking_accessions* accessions);
157
159 void dropAccessions();
160
162 std::string getAccessionsSchemaType() const;
163
164
166 bool haveScope() const;
167
169 const ms_crosslinking_scope* getScope() const;
170
172 void setScope(const ms_crosslinking_scope* scope);
173
175 void dropScope();
176
178 std::string getScopeSchemaType() const;
179
180
182 bool haveFilters() const;
183
185 const ms_crosslinking_filters* getFilters() const;
186
188 void setFilters(const ms_crosslinking_filters* filters);
189
191 void dropFilters();
192
194 std::string getFiltersSchemaType() const;
195
196
198 bool haveSettings() const;
199
201 const ms_crosslinking_settings* getSettings() const;
202
204 void setSettings(const ms_crosslinking_settings* settings);
205
207 void dropSettings();
208
210 std::string getSettingsSchemaType() const;
211
212
213 private:
214 std::string _name;
215 bool _name_set;
216
217 std::string _strategy;
218 bool _strategy_set;
219
220 std::string _description;
221 bool _description_set;
222
223 ms_crosslinking_linkers *_pLinkers;
224 ms_crosslinking_accessions *_pAccessions;
225 ms_crosslinking_scope *_pScope;
226 ms_crosslinking_filters *_pFilters;
227 ms_crosslinking_settings *_pSettings;
228
229 }; // class ms_crosslinking_method
230 // end of config_group
232
233} // namespace matrix_science
234
235#endif // MS_CROSSLINKING_METHOD_HPP
236
237/*------------------------------- End of File -------------------------------*/
238
Accessions element in crosslinking.xml
Definition: ms_crosslinking_accessions.hpp:44
This class represents the file crosslinking.xml.
Definition: ms_crosslinking_configfile.hpp:49
Filters element in crosslinking.xml
Definition: ms_crosslinking_filters.hpp:52
Linkers element in crosslinking.xml
Definition: ms_crosslinking_linkers.hpp:54
Represents a method object in crosslinking.xml
Definition: ms_crosslinking_method.hpp:50
Scope element in crosslinking.xml
Definition: ms_crosslinking_scope.hpp:52
Settings element in crosslinking.xml
Definition: ms_crosslinking_settings.hpp:76