Matrix Science Mascot Parser toolkit
Loading...
Searching...
No Matches
ms_wwwoptions.hpp
1
/*
2
##############################################################################
3
# file: ms_wwwoptions.hpp #
4
# 'msparser' toolkit #
5
# Represents "WWW" section of "mascot.dat" file #
6
##############################################################################
7
# COPYRIGHT NOTICE #
8
# Copyright 1998-2003 Matrix Science Limited All Rights Reserved. #
9
# #
10
##############################################################################
11
# $Archive:: /Mowse/ms_mascotresfile/include/ms_wwwoptions.hpp $ #
12
# $Author: villek@matrixscience.com $ #
13
# $Date: 2018-07-30 16:23:53 +0100 $ #
14
# $Revision: 1b450440f9c97e1e41d0fc6016a27d68951d4532 | MSPARSER_REL_3_0_0-2024-09-24-0-g93ebaeb4f4 $ #
15
# $NoKeywords:: $ #
16
##############################################################################
17
*/
18
19
#ifndef MS_WWWOPTIONS_HPP
20
#define MS_WWWOPTIONS_HPP
21
22
23
#include <string>
24
#include <vector>
25
26
27
namespace
matrix_science {
38
enum
WWW_TYPE
39
{
40
WWW_SEQ
= 0,
41
WWW_REP
= 1
42
};
43
45
51
class
MS_MASCOTRESFILE_API
ms_wwwentry
52
{
53
friend
class
ms_datfile
;
54
friend
class
ms_wwwoptions
;
55
56
public
:
58
ms_wwwentry
();
59
61
ms_wwwentry
(
const
ms_wwwentry
& src);
62
64
~ms_wwwentry
();
65
67
void
defaultValues();
68
70
void
copyFrom(
const
ms_wwwentry
* right);
71
72
#ifndef SWIG
74
ms_wwwentry
& operator=(
const
ms_wwwentry
& right);
75
#endif
77
std::string getName()
const
;
78
80
void
setName(
const
char
* value);
81
83
WWW_TYPE
getType()
const
;
84
86
void
setType(
const
WWW_TYPE
value);
87
89
int
getParseRule()
const
;
90
92
void
setParseRule(
const
int
value);
93
95
std::string getHostName()
const
;
96
98
void
setHostName(
const
char
* value);
99
101
int
getPortNumber()
const
;
102
104
void
setPortNumber(
const
int
value);
105
107
std::string getPath()
const
;
108
110
void
setPath(
const
char
* value);
111
112
private
:
113
std::string name_;
114
WWW_TYPE
type_;
115
int
parseRuleNum_;
116
std::string hostName_;
117
int
portNumber_;
118
std::string path_;
119
120
std::string getStringName()
const
;
121
std::string getStringValue()
const
;
122
};
// class MS_MASCOTRESFILE_API ms_wwwentry
123
125
156
class
MS_MASCOTRESFILE_API
ms_wwwoptions
:
public
ms_customproperty
157
{
158
friend
class
ms_datfile
;
159
public
:
160
162
ms_wwwoptions
();
163
165
ms_wwwoptions
(
const
ms_wwwoptions
& src);
166
168
~ms_wwwoptions
();
169
171
void
defaultValues();
172
174
void
copyFrom(
const
ms_wwwoptions
* right);
175
176
#ifndef SWIG
178
ms_wwwoptions
& operator=(
const
ms_wwwoptions
& right);
179
#endif
181
bool
isSectionAvailable()
const
;
182
184
void
setSectionAvailable(
const
bool
value);
185
187
int
getNumberOfEntries()
const
;
188
190
const
ms_wwwentry
* getEntry(
const
int
index)
const
;
191
193
const
ms_wwwentry
* getSeqEntryByName(
const
char
* dbName)
const
;
194
196
const
ms_wwwentry
* getRepEntryByName(
const
char
* dbName)
const
;
197
199
void
clearEntries();
200
202
void
appendEntry(
const
ms_wwwentry
* item);
203
205
void
setEntry(
const
int
index,
const
ms_wwwentry
* item);
206
208
void
dropEntry(
const
int
index);
209
210
#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
211
#include "suppress_ms_customproperty.hpp"
212
#endif
213
214
private
:
215
bool
sectionAvailable_;
216
std::vector< ms_wwwentry* > entries_;
217
};
// class ms_wwwoptions // end of config_group
219
}
// namespace matrix_science
220
221
#endif
// MS_WWWOPTIONS_HPP
matrix_science::ms_customproperty
The class is used as a base for property-containing classes, such as ms_mascotoptions.
Definition:
ms_customproperty.hpp:91
matrix_science::ms_datfile
Encapsulates the mascot.dat file that contains the most important parameters.
Definition:
ms_datfile.hpp:47
matrix_science::ms_wwwentry
Represent a single entry in the WWW section of mascot.dat.
Definition:
ms_wwwoptions.hpp:52
matrix_science::ms_wwwoptions
Represents the whole WWW section.
Definition:
ms_wwwoptions.hpp:157
matrix_science::WWW_TYPE
WWW_TYPE
Definition:
ms_wwwoptions.hpp:39
matrix_science::WWW_REP
@ WWW_REP
Full text report source.
Definition:
ms_wwwoptions.hpp:41
matrix_science::WWW_SEQ
@ WWW_SEQ
Sequence string source.
Definition:
ms_wwwoptions.hpp:40
inc
ms_wwwoptions.hpp
Generated on Tue Sep 24 2024 10:33:09 for Matrix Science Mascot Parser toolkit by
1.9.6