Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_quant_normalisation_protein.hpp
1/*
2##############################################################################
3# file: ms_quant_normalisation_protein.hpp #
4# 'msparser' toolkit #
5# Encapsulates protein-element from "quantitation.xml"-file #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2009 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_quant_normalisation_protein.hpp $
12 * @(#)$Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $
13 * @(#)$Date: 2018-07-30 16:23:53 +0100 $
14##############################################################################
15 */
16
17#ifndef MS_QUANT_NORMALISATION_PROTEIN_HPP
18#define MS_QUANT_NORMALISATION_PROTEIN_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_quant_modgroup; // forward declaration
32 class ms_xml_schema; // forward declaration
33
40
43 class MS_MASCOTRESFILE_API ms_quant_normalisation_protein: public ms_xml_IValidatable
44 {
45 friend class msparser_internal::ms_quant_xmlloader;
46
47 public:
50
53
56
58 void defaultValues();
59
61 void copyFrom(const ms_quant_normalisation_protein* right);
62
63#ifndef SWIG
66#endif
68 virtual std::string getSchemaType() const;
69
71 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
72
74 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
75
76
78 bool haveAccession() const;
79
81 std::string getAccession() const;
82
84 void setAccession(const char * value);
85
87 void dropAccession();
88
90 std::string getAccessionSchemaType() const;
91
92 private:
93
94 std::string _accession;
95 bool _accession_set;
96 }; // class ms_quant_normalisation_protein
97
99 class MS_MASCOTRESFILE_API ms_quant_normalisation_proteins: public ms_xml_IValidatable
100 {
101 friend class msparser_internal::ms_quant_xmlloader;
102
103 public:
106
109
112
114 void defaultValues();
115
117 void copyFrom(const ms_quant_normalisation_proteins* right);
118
119#ifndef SWIG
122#endif
124 virtual std::string getSchemaType() const;
125
127 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
128
130 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
131
132
134 int getNumberOfProteins() const;
135
137 void clearProteins();
138
140 void appendProtein(const ms_quant_normalisation_protein* protein);
141
143 const ms_quant_normalisation_protein* getProtein(const int idx) const;
144
146 bool updateProtein(const int idx, const ms_quant_normalisation_protein* protein);
147
149 bool deleteProtein(const int idx);
150
152 std::string getProteinSchemaType() const;
153
154 private:
155
156 typedef std::vector< ms_quant_normalisation_protein* > prot_vector;
157 prot_vector _proteins;
158 }; // class ms_quant_normalisation_proteins
159 // end of config_group
161
162} // namespace matrix_science
163
164#endif // MS_QUANT_NORMALISATION_PROTEIN_HPP
165
166/*------------------------------- End of File -------------------------------*/
167
An object of this class represent a single protein element in quantitation.xml.
Definition: ms_quant_normalisation_protein.hpp:44
An object of this class represent a collection of peptide elements in quantitation....
Definition: ms_quant_normalisation_protein.hpp:100