PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
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 
24 }
25 
27 
31  copyPParseCmd(other);
32 }
33 
36 
37 }
38 
40 
44  copyPParseCmd(other);
45  return *this;
46 }
47 
49 
51 void PParseCmd::setIsMatch(bool isMatch){
52  p_isMatch = isMatch;
53 }
54 
56 
58 void PParseCmd::setStr(const PString & str){
59  p_str = str;
60 }
61 
63 
65 bool PParseCmd::getIsMatch() const{
66  return p_isMatch;
67 }
68 
70 
73  return p_isMatch;
74 }
75 
77 
79 const 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 
100  p_isMatch = 0;
101 
102 }
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 
123 }
124 
126 
130  copyPParseStep(other);
131 }
132 
135 
136 }
137 
139 
143  copyPParseStep(other);
144  return *this;
145 }
146 
148 
150 void PParseStep::setIsOptional(bool isOptional){
151  p_isOptional = isOptional;
152 }
153 
155 
157 void 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 
178 const std ::vector<PParseCmd> & PParseStep::getVecCmd() const{
179  return p_vecCmd;
180 }
181 
183 
185 std ::vector<PParseCmd> & PParseStep::getVecCmd(){
186  return p_vecCmd;
187 }
188 
189 /***********************************************************************
190 * *
191 * Private functions of class PParseStep *
192 * *
193 ************************************************************************/
194 
195 
199  p_isOptional = 0;
200 
201 }
202 
204 
207  p_isOptional = other.p_isOptional;
208  p_vecCmd = other.p_vecCmd;
209 
210 }
211 
212 /***********************************************************************
213 * *
214 * Public functions of class PParseSeq *
215 * *
216 ************************************************************************/
217 
218 
222 }
223 
225 
229  copyPParseSeq(other);
230 }
231 
234 
235 }
236 
238 
242  copyPParseSeq(other);
243  return *this;
244 }
245 
247 
249 void PParseSeq::setVecStep(const std ::vector<PParseStep> & vecStep){
250  p_vecStep = vecStep;
251 }
252 
254 
256 const std ::vector<PParseStep> & PParseSeq::getVecStep() const{
257  return p_vecStep;
258 }
259 
261 
263 std ::vector<PParseStep> & PParseSeq::getVecStep(){
264  return p_vecStep;
265 }
266 
267 /***********************************************************************
268 * *
269 * Private functions of class PParseSeq *
270 * *
271 ************************************************************************/
272 
273 
276 
277 }
278 
280 
283  p_vecStep = other.p_vecStep;
284 
285 }
286 
287 
288 
Parser command.
Definition: PParseSeq.h:33
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.
Definition: PParseSeq.cpp:107
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
Parsing sequence.
Definition: PParseSeq.h:77
PParseSeq & operator=(const PParseSeq &other)
Equal operator of the class PParseSeq.
Definition: PParseSeq.cpp:241
void copyPParseSeq(const PParseSeq &other)
Copy function of the class PParseSeq.
Definition: PParseSeq.cpp:282
PParseSeq()
Constructor of the class PParseSeq.
Definition: PParseSeq.cpp:220
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.
Definition: PParseSeq.cpp:233
const std ::vector< PParseStep > & getVecStep() const
Get the variable p_vecStep.
Definition: PParseSeq.cpp:256
void initialisationPParseSeq()
Initialisation function of the class PParseSeq.
Definition: PParseSeq.cpp:275
void setVecStep(const std ::vector< PParseStep > &vecStep)
Set the variable p_vecStep, of type 'std ::vector<PParseStep>'.
Definition: PParseSeq.cpp:249
Describes a parsing step.
Definition: PParseSeq.h:55
void setIsOptional(bool isOptional)
Set the variable p_isOptional, of type 'bool'.
Definition: PParseSeq.cpp:150
PParseStep()
Constructor of the class PParseStep.
Definition: PParseSeq.cpp:121
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.
Definition: PParseSeq.cpp:142
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.
Definition: PParseSeq.cpp:178
virtual ~PParseStep()
Destructor of the class PParseStep.
Definition: PParseSeq.cpp:134
void initialisationPParseStep()
Initialisation function of the class PParseStep.
Definition: PParseSeq.cpp:197
void setVecCmd(const std ::vector< PParseCmd > &vecCmd)
Set the variable p_vecCmd, of type 'std ::vector<PParseCmd>'.
Definition: PParseSeq.cpp:157
void copyPParseStep(const PParseStep &other)
Copy function of the class PParseStep.
Definition: PParseSeq.cpp:206
bool getIsOptional() const
Get the variable p_isOptional.
Definition: PParseSeq.cpp:164
Extends the std::string.
Definition: PString.h:16