Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_crosslinking_parameters.hpp
1/*
2##############################################################################
3# file: ms_crosslinking_parameters.hpp #
4# 'msparser' toolkit #
5# Encapsulates parameterType-definition from crosslinking_1.xsd #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2013 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_crosslinking_parameters.hpp $
12 * @(#)$Revision: 9de60354aaae13272cadfa764dbabd92c93c724c | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2018-12-20 12:05:22 +0000 $
14##############################################################################
15 */
16
17#ifndef MS_CROSSLINKING_PARAMETERS_HPP
18#define MS_CROSSLINKING_PARAMETERS_HPP
19
20
21#include <string>
22#include <vector>
23
24namespace msparser_internal {
25 class ms_crosslinking_xmlloader;
26}
27
28namespace matrix_science {
29 class ms_xml_parameters;
30 class ms_xml_schema; // forward declaration
31
38 class MS_MASCOTRESFILE_API ms_crosslinking_parameter: public ms_xml_parameter
39 {
40 friend class msparser_internal::ms_crosslinking_xmlloader;
41
42 public:
45
48
51
53 void defaultValues();
54
56 void copyFrom(const ms_crosslinking_parameter* right);
57
58#ifndef SWIG
61#endif
63 virtual std::string getSchemaType() const;
64
66 virtual std::string getNameSchemaType() const;
67
69 virtual std::string getDescriptionSchemaType() const;
70
72 virtual std::string getValueSchemaType() const;
73
74 protected:
75 virtual bool saveToXML_ParameterByNumber(msparser_internal::ms_XMLHelper &helper, msparser_internal::ms_XMLElement &rootEl) const;
76
77 }; // class ms_crosslinking_parameter
78
80
83 class MS_MASCOTRESFILE_API ms_crosslinking_parameters: public ms_xml_parameters
84 {
85 friend class msparser_internal::ms_crosslinking_xmlloader;
86
87 public:
90
93
96
98 void defaultValues();
99
101 void copyFrom(const ms_crosslinking_parameters* right);
102
103#ifndef SWIG
106#endif
108 virtual std::string getSchemaType() const;
109
111 virtual int getNumberOfParameters() const;
112
114 virtual void clearParameters();
115
117 void appendParameter(const ms_crosslinking_parameter *item);
118
120 const ms_crosslinking_parameter * getParameterByNumber(const int idx) const;
121
123 const ms_crosslinking_parameter * getParameterByName(const char *name) const;
124
126 bool updateParameterByNumber(const int idx, const ms_crosslinking_parameter *param);
127
129 bool updateParameterByName(const char *name, const ms_crosslinking_parameter *param);
130
132 virtual bool deleteParameterByNumber(const int idx);
133
135 virtual bool deleteParameterByName(const char *name);
136
138 virtual std::string getParameterSchemaType() const;
139
140 protected:
141 virtual bool saveToXML_Parameters(msparser_internal::ms_XMLHelper &helper, msparser_internal::ms_XMLElement &rootEl) const;
142
143 private:
144 typedef std::vector< ms_crosslinking_parameter* > entries_vector;
145 entries_vector _entries;
146
147 }; // class ms_crosslinking_parameters
148 // end of config_group
150
151} // namespace matrix_science
152
153#endif // MS_CROSSLINKING_PARAMETERS_HPP
154
155/*------------------------------- End of File -------------------------------*/
156
Parameter name and value pair.
Definition: ms_crosslinking_parameters.hpp:39
A class that represents base parametersType in crosslinking_1.xsd.
Definition: ms_crosslinking_parameters.hpp:84
Parameter name and value pair.
Definition: ms_xml_parameters.hpp:46
A class that represents a base parametersType.
Definition: ms_xml_parameters.hpp:140