Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_quant_file_index.hpp
1/*
2##############################################################################
3# file: ms_quant_file_index.hpp #
4# 'msparser' toolkit #
5# Encapsulates \c correction element 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_file_index.hpp $
12 * @(#)$Revision: 13df8a1acb577c00eb17a154317b079d156f9538 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2022-01-05 16:48:40 +0000 $
14##############################################################################
15 */
16
17#ifndef MS_QUANT_FILE_INDEX_HPP
18#define MS_QUANT_FILE_INDEX_HPP
19
20
21#include <string>
22#include <vector>
23
24// forward declarations
25namespace msparser_internal {
26 class ms_quant_xmlloader;
27}
28
29namespace matrix_science {
30
31 class ms_xml_schema; // forward declaration
32
39
51 class MS_MASCOTRESFILE_API ms_quant_file_index: public ms_xml_IValidatable
52 {
53 friend class msparser_internal::ms_quant_xmlloader;
54
55 public:
58
61
63 virtual ~ms_quant_file_index();
64
66 void defaultValues();
67
69 void copyFrom(const ms_quant_file_index* right);
70
71#ifndef SWIG
73 ms_quant_file_index& operator=(const ms_quant_file_index& right);
74#endif
75
77 virtual std::string getSchemaType() const;
78
80 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
81
83 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
84
85
87 bool haveFraction() const;
88
90 int getFraction() const;
91
93 void setFraction(const int value);
94
96 void dropFraction();
97
99 std::string getFractionSchemaType() const;
100
101
103 int getContent() const;
104
106 void setContent(const int fileIndex);
107
109 std::string getContentSchemaType() const;
110
112 static const int file_index_value_not_set = -1;
113
114 private:
115 int _content;
116 int _fraction;
117 bool _fraction_set;
118
119 }; // class ms_quant_file_index
120 // end of config_group
122
123} // namespace matrix_science
124
125#endif // MS_QUANT_FILE_INDEX_HPP
126
127/*------------------------------- End of File -------------------------------*/
Represents a file_index element.
Definition: ms_quant_file_index.hpp:52