Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_quant_configfile.hpp
1/*
2##############################################################################
3# file: ms_quant_configfile.hpp #
4# 'msparser' toolkit #
5# Encapsulates "quantitation.xml"-file that serves as quantitation #
6# configuration file #
7##############################################################################
8# COPYRIGHT NOTICE #
9# Copyright 1998-2006 Matrix Science Limited All Rights Reserved. #
10# #
11##############################################################################
12 * @(#)$Source: parser/inc/ms_quant_configfile.hpp $
13 * @(#)$Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
14 * @(#)$Date: 2018-07-30 16:23:53 +0100 $
15##############################################################################
16 */
17
18#ifndef MS_QUANT_CONFIGFILE_HPP
19#define MS_QUANT_CONFIGFILE_HPP
20
21
22#include <string>
23
24// forward declarations
25namespace msparser_internal {
26 class ms_quant_xmlloader;
27 class ms_quant_configfile_impl;
28}
29
30namespace matrix_science {
31
32 class ms_connection_settings; // forward declaration
33 class ms_quant_method; // forward declaration
34
41
51 class MS_MASCOTRESFILE_API ms_quant_configfile: public ms_errors
52 {
53 friend class msparser_internal::ms_quant_xmlloader;
54 public:
57
60
62 ms_quant_configfile(const char* fileName, const char* schemaFileName,
63 const ms_connection_settings * cs = 0);
64
67
69 void defaultValues();
70
72 void copyFrom(const ms_quant_configfile* right);
73
74#ifndef SWIG
76 ms_quant_configfile& operator=(const ms_quant_configfile& right);
77#endif
79 void setFileName(const char* name);
80
82 std::string getFileName() const;
83
85 void setSchemaFileName(const char* name);
86
88 std::string getSchemaFileName() const;
89
91 void setSchemaDirectory(const char * dir);
92
94 std::string getSchemaDirectory() const;
95
97 void setConnectionSettings(const ms_connection_settings & cs);
98
100 ms_connection_settings getConnectionSettings() const;
101
103 void read_file();
104
106 void save_file();
107
109 void read_buffer(const char *buffer);
110
112 std::string save_buffer();
113
115 std::string validateDocument() const;
116
118 int getNumberOfMethods() const;
119
121 void clearMethods();
122
124 void appendMethod(const ms_quant_method *item);
125
127 const ms_quant_method * getMethodByNumber(const int idx) const;
128
130 const ms_quant_method * getMethodByName(const char *name) const;
131
133 bool updateMethodByNumber(const int idx, const ms_quant_method *mod);
134
136 bool updateMethodByName(const char *name, const ms_quant_method *mod);
137
139 bool deleteMethodByNumber(const int idx);
140
142 bool deleteMethodByName(const char *name);
143
145 std::string getMajorVersion() const;
146
148 std::string getMinorVersion() const;
149
150 private:
151 msparser_internal::ms_quant_configfile_impl * m_pImpl;
152 }; // class ms_quant_configfile
153 // end of config_group
155
156} // namespace matrix_science
157
158#endif // MS_QUANT_CONFIGFILE_HPP
159
160/*------------------------------- End of File -------------------------------*/
161
Settings required to make an HTTP connection to a Mascot server.
Definition: ms_connection_settings.hpp:54
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
Use this class in order to read/write quantitation.xml.
Definition: ms_quant_configfile.hpp:52
An object of this class represent a single quantitation method from quantitation.xml.
Definition: ms_quant_method.hpp:51