Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_crosslinking_accessions.hpp
1/*
2##############################################################################
3# file: ms_crosslinking_accessions.hpp #
4# 'msparser' toolkit #
5# Encapsulates accessions element in crosslinking.xml #
6##############################################################################
7# COPYRIGHT NOTICE #
8# Copyright 1998-2019 Matrix Science Limited All Rights Reserved. #
9# #
10##############################################################################
11 * @(#)$Source: parser/inc/ms_crosslinking_accessions.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_ACCESSIONS_HPP
18#define MS_CROSSLINKING_ACCESSIONS_HPP
19
20
21#include <string>
22
23// forward declarations
24namespace msparser_internal {
25 class ms_crosslinking_xmlloader;
26}
27
28namespace matrix_science {
29 class ms_crosslinking_accession;
30 class ms_xml_schema; // forward declaration
31
38
43 class MS_MASCOTRESFILE_API ms_crosslinking_accessions: public ms_xml_IValidatable
44 {
45 friend class msparser_internal::ms_crosslinking_xmlloader;
46
47 public:
50
53
56
58 void defaultValues();
59
61 void copyFrom(const ms_crosslinking_accessions* right);
62
63#ifndef SWIG
66#endif
67
69 virtual std::string getSchemaType() const;
70
72 virtual std::string validateShallow(const ms_xml_schema *pSchemaFileObj) const;
73
75 virtual std::string validateDeep(const ms_xml_schema *pSchemaFileObj) const;
76
77
79 int getNumberOfAccessions() const;
80
82 void clearAccessions();
83
85 void appendAccession(const ms_crosslinking_accession *item);
86
88 const ms_crosslinking_accession * getAccessionByNumber(const int idx) const;
89
91 bool updateAccessionByNumber(const int idx, const ms_crosslinking_accession* accession);
92
94 bool deleteAccessionByNumber(const int idx);
95
97 std::string getAccessionSchemaType() const;
98
99
100 private:
101 typedef std::vector< ms_crosslinking_accession * > accession_vector;
102 accession_vector _accessions;
103
104 }; // class ms_crosslinking_accessions
105 // end of config_group
107
108} // namespace matrix_science
109
110#endif // MS_CROSSLINKING_ACCESSIONS_HPP
111
112/*------------------------------- End of File -------------------------------*/
113
Accession element in crosslinking.xml
Definition: ms_crosslinking_accession.hpp:43
Accessions element in crosslinking.xml
Definition: ms_crosslinking_accessions.hpp:44