Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_quant_parameters.hpp
1/*
2##############################################################################
3# file: ms_quant_parameters.hpp #
4# 'msparser' toolkit #
5# Encapsulates parametersType-definition from "quantitation.xml"-file #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2006 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_quant_parameters.hpp $
12 * @(#)$Revision: 8fee77726a13a239ca8bcf2b46212bff297db9b7 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2018-12-20 10:50:55 +0000 $
14##############################################################################
15 */
16
17#ifndef MS_QUANT_PARAMETERS_HPP
18#define MS_QUANT_PARAMETERS_HPP
19
20
21#include <string>
22#include <vector>
23
24namespace msparser_internal {
25 class ms_quant_xmlloader;
26}
27
28namespace matrix_science {
29 class ms_xml_schema; // forward declaration
30 class ms_xml_parameter;
31 class ms_xml_parameters;
32
39 class MS_MASCOTRESFILE_API ms_quant_parameter: public ms_xml_parameter
40 {
41 friend class msparser_internal::ms_quant_xmlloader;
42
43 public:
46
49
51 virtual ~ms_quant_parameter();
52
54 void copyFrom(const ms_quant_parameter* right);
55
56#ifndef SWIG
58 ms_quant_parameter& operator=(const ms_quant_parameter& right);
59#endif
61 virtual std::string getSchemaType() const;
62
64 virtual std::string getNameSchemaType() const;
65
67 virtual std::string getDescriptionSchemaType() const;
68
70 virtual std::string getValueSchemaType() const;
71
72 protected:
73 virtual bool saveToXML_ParameterByNumber(msparser_internal::ms_XMLHelper &helper, msparser_internal::ms_XMLElement &rootEl) const;
74
75 }; // class ms_quant_parameter
76
78
81 class MS_MASCOTRESFILE_API ms_quant_parameters: public ms_xml_parameters
82 {
83 friend class msparser_internal::ms_quant_xmlloader;
84 public:
87
90
92 virtual ~ms_quant_parameters();
93
95 void defaultValues();
96
98 void copyFrom(const ms_quant_parameters* right);
99
100#ifndef SWIG
102 ms_quant_parameters& operator=(const ms_quant_parameters& right);
103#endif
105 virtual std::string getSchemaType() const;
106
108 virtual int getNumberOfParameters() const;
109
111 virtual void clearParameters();
112
114 void appendParameter(const ms_quant_parameter *item);
115
117 const ms_quant_parameter * getParameterByNumber(const int idx) const;
118
120 const ms_quant_parameter * getParameterByName(const char *name) const;
121
123 bool updateParameterByNumber(const int idx, const ms_quant_parameter *param);
124
126 bool updateParameterByName(const char *name, const ms_quant_parameter *param);
127
129 virtual bool deleteParameterByNumber(const int idx);
130
132 virtual bool deleteParameterByName(const char *name);
133
135 virtual std::string getParameterSchemaType() const;
136
137 protected:
138 virtual bool saveToXML_Parameters(msparser_internal::ms_XMLHelper &helper, msparser_internal::ms_XMLElement &rootEl) const;
139
140 private:
141 typedef std::vector< ms_quant_parameter* > entries_vector;
142 entries_vector _entries;
143
144 }; // class ms_quant_parameters
145 // end of config_group
147
148} // namespace matrix_science
149
150#endif // MS_QUANT_PARAMETERS_HPP
151
152/*------------------------------- End of File -------------------------------*/
153
Parameter name and value pair.
Definition: ms_quant_parameters.hpp:40
A class that represents base parametersType in quantitation.xml.
Definition: ms_quant_parameters.hpp:82
Parameter name and value pair.
Definition: ms_xml_parameters.hpp:46
A class that represents a base parametersType.
Definition: ms_xml_parameters.hpp:140