PhoenixFileParser  1.0.0
Set of tools to ease file parsing
Loading...
Searching...
No Matches
PParseSeq.cpp
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7
8
9//You should not modify this file
10
11#include "PParseSeq.h"
12
13
14/***********************************************************************
15* *
16* Public functions of class PParseCmd *
17* *
18************************************************************************/
19
20
25
27
33
38
40
44 copyPParseCmd(other);
45 return *this;
46}
47
49
51void PParseCmd::setIsMatch(bool isMatch){
52 p_isMatch = isMatch;
53}
54
56
58void PParseCmd::setStr(const PString & str){
59 p_str = str;
60}
61
63
66 return p_isMatch;
67}
68
70
73 return p_isMatch;
74}
75
77
79const PString & PParseCmd::getStr() const{
80 return p_str;
81}
82
84
87 return p_str;
88}
89
90/***********************************************************************
91* *
92* Private functions of class PParseCmd *
93* *
94************************************************************************/
95
96
103
105
108 p_isMatch = other.p_isMatch;
109 p_str = other.p_str;
110
111}
112
113/***********************************************************************
114* *
115* Public functions of class PParseStep *
116* *
117************************************************************************/
118
119
124
126
132
137
139
143 copyPParseStep(other);
144 return *this;
145}
146
148
150void PParseStep::setIsOptional(bool isOptional){
151 p_isOptional = isOptional;
152}
153
155
157void PParseStep::setVecCmd(const std ::vector<PParseCmd> & vecCmd){
158 p_vecCmd = vecCmd;
159}
160
162
165 return p_isOptional;
166}
167
169
172 return p_isOptional;
173}
174
176
178const std ::vector<PParseCmd> & PParseStep::getVecCmd() const{
179 return p_vecCmd;
180}
181
183
185std ::vector<PParseCmd> & PParseStep::getVecCmd(){
186 return p_vecCmd;
187}
188
189/***********************************************************************
190* *
191* Private functions of class PParseStep *
192* *
193************************************************************************/
194
195
202
204
208 p_vecCmd = other.p_vecCmd;
209
210}
211
212/***********************************************************************
213* *
214* Public functions of class PParseSeq *
215* *
216************************************************************************/
217
218
223
225
231
236
238
242 copyPParseSeq(other);
243 return *this;
244}
245
247
249void PParseSeq::setVecStep(const std ::vector<PParseStep> & vecStep){
250 p_vecStep = vecStep;
251}
252
254
256const std ::vector<PParseStep> & PParseSeq::getVecStep() const{
257 return p_vecStep;
258}
259
261
263std ::vector<PParseStep> & PParseSeq::getVecStep(){
264 return p_vecStep;
265}
266
267/***********************************************************************
268* *
269* Private functions of class PParseSeq *
270* *
271************************************************************************/
272
273
278
280
283 p_vecStep = other.p_vecStep;
284
285}
286
287
288
void setIsMatch(bool isMatch)
Set the variable p_isMatch, of type 'bool'.
Definition PParseSeq.cpp:51
virtual ~PParseCmd()
Destructor of the class PParseCmd.
Definition PParseSeq.cpp:35
void setStr(const PString &str)
Set the variable p_str, of type 'PString'.
Definition PParseSeq.cpp:58
bool getIsMatch() const
Get the variable p_isMatch.
Definition PParseSeq.cpp:65
bool p_isMatch
True to use isMatch function instead of strComposedOf.
Definition PParseSeq.h:49
void copyPParseCmd(const PParseCmd &other)
Copy function of the class PParseCmd.
void initialisationPParseCmd()
Initialisation function of the class PParseCmd.
Definition PParseSeq.cpp:98
PString p_str
String to be used for the parsing.
Definition PParseSeq.h:51
const PString & getStr() const
Get the variable p_str.
Definition PParseSeq.cpp:79
PParseCmd & operator=(const PParseCmd &other)
Equal operator of the class PParseCmd.
Definition PParseSeq.cpp:43
PParseCmd()
Constructor of the class PParseCmd.
Definition PParseSeq.cpp:22
PParseSeq & operator=(const PParseSeq &other)
Equal operator of the class PParseSeq.
void copyPParseSeq(const PParseSeq &other)
Copy function of the class PParseSeq.
PParseSeq()
Constructor of the class PParseSeq.
std ::vector< PParseStep > p_vecStep
Vector of all the steps of the parsing sequence.
Definition PParseSeq.h:90
virtual ~PParseSeq()
Destructor of the class PParseSeq.
const std ::vector< PParseStep > & getVecStep() const
Get the variable p_vecStep.
void initialisationPParseSeq()
Initialisation function of the class PParseSeq.
void setVecStep(const std ::vector< PParseStep > &vecStep)
Set the variable p_vecStep, of type 'std ::vector<PParseStep>'.
void setIsOptional(bool isOptional)
Set the variable p_isOptional, of type 'bool'.
PParseStep()
Constructor of the class PParseStep.
bool p_isOptional
True if the step is optional (as soon as the previous one or the next one is Ok)
Definition PParseSeq.h:71
PParseStep & operator=(const PParseStep &other)
Equal operator of the class PParseStep.
std ::vector< PParseCmd > p_vecCmd
Vector of command to be used for parsing.
Definition PParseSeq.h:73
const std ::vector< PParseCmd > & getVecCmd() const
Get the variable p_vecCmd.
virtual ~PParseStep()
Destructor of the class PParseStep.
void initialisationPParseStep()
Initialisation function of the class PParseStep.
void setVecCmd(const std ::vector< PParseCmd > &vecCmd)
Set the variable p_vecCmd, of type 'std ::vector<PParseCmd>'.
void copyPParseStep(const PParseStep &other)
Copy function of the class PParseStep.
bool getIsOptional() const
Get the variable p_isOptional.