Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_crosslinking_accession.hpp
1/*
2##############################################################################
3# file: ms_crosslinking_accession.hpp #
4# 'msparser' toolkit #
5# Encapsulates accession 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_accession.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_ACCESSION_HPP
18#define MS_CROSSLINKING_ACCESSION_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_xml_schema; // forward declaration
30
37
42 class MS_MASCOTRESFILE_API ms_crosslinking_accession: public ms_xml_IValidatable
43 {
44 friend class msparser_internal::ms_crosslinking_xmlloader;
45
46 public:
49
52
55
57 void defaultValues();
58
60 void copyFrom(const ms_crosslinking_accession* right);
61
62#ifndef SWIG
65#endif
66
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 haveDatabaseName() const;
79
81 std::string getDatabaseName() const;
82
84 void setDatabaseName(const char* value);
85
87 void dropDatabaseName();
88
90 std::string getDatabaseNameSchemaType() const;
91
92
94 bool haveValue() const;
95
97 std::string getValue() const;
98
100 void setValue(const char* value);
101
103 void dropValue();
104
106 std::string getValueSchemaType() const;
107
108
109 private:
110 std::string _databaseName;
111 bool _databaseName_set;
112
113 std::string _value;
114
115 }; // class ms_crosslinking_accession
116 // end of config_group
118
119} // namespace matrix_science
120
121#endif // MS_CROSSLINKING_ACCESSION_HPP
122
123/*------------------------------- End of File -------------------------------*/
124
Accession element in crosslinking.xml
Definition: ms_crosslinking_accession.hpp:43