PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
PParseStep Class Reference

Describes a parsing step. More...

#include <PParseSeq.h>

Public Member Functions

bool & getIsOptional ()
 Get the variable p_isOptional. More...
 
bool getIsOptional () const
 Get the variable p_isOptional. More...
 
std ::vector< PParseCmd > & getVecCmd ()
 Get the variable p_vecCmd. More...
 
const std ::vector< PParseCmd > & getVecCmd () const
 Get the variable p_vecCmd. More...
 
PParseStepoperator= (const PParseStep &other)
 Equal operator of the class PParseStep. More...
 
 PParseStep ()
 Constructor of the class PParseStep. More...
 
 PParseStep (const PParseStep &other)
 Copy constructor of the class PParseStep. More...
 
void setIsOptional (bool isOptional)
 Set the variable p_isOptional, of type 'bool'. More...
 
void setVecCmd (const std ::vector< PParseCmd > &vecCmd)
 Set the variable p_vecCmd, of type 'std ::vector<PParseCmd>'. More...
 
virtual ~PParseStep ()
 Destructor of the class PParseStep. More...
 

Private Member Functions

void copyPParseStep (const PParseStep &other)
 Copy function of the class PParseStep. More...
 
void initialisationPParseStep ()
 Initialisation function of the class PParseStep. More...
 

Private Attributes

bool p_isOptional
 True if the step is optional (as soon as the previous one or the next one is Ok) More...
 
std ::vector< PParseCmdp_vecCmd
 Vector of command to be used for parsing. More...
 

Detailed Description

Describes a parsing step.

Definition at line 55 of file PParseSeq.h.

Constructor & Destructor Documentation

◆ PParseStep() [1/2]

PParseStep::PParseStep ( )

Constructor of the class PParseStep.

Definition at line 121 of file PParseSeq.cpp.

121  {
123 }
void initialisationPParseStep()
Initialisation function of the class PParseStep.
Definition: PParseSeq.cpp:197

References initialisationPParseStep().

+ Here is the call graph for this function:

◆ PParseStep() [2/2]

PParseStep::PParseStep ( const PParseStep other)

Copy constructor of the class PParseStep.

Parameters
other: other variable

Definition at line 128 of file PParseSeq.cpp.

128  {
130  copyPParseStep(other);
131 }
void copyPParseStep(const PParseStep &other)
Copy function of the class PParseStep.
Definition: PParseSeq.cpp:206

References copyPParseStep(), and initialisationPParseStep().

+ Here is the call graph for this function:

◆ ~PParseStep()

PParseStep::~PParseStep ( )
virtual

Destructor of the class PParseStep.

Definition at line 134 of file PParseSeq.cpp.

134  {
135 
136 }

Member Function Documentation

◆ copyPParseStep()

void PParseStep::copyPParseStep ( const PParseStep other)
private

Copy function of the class PParseStep.

Parameters
other: other variable

Definition at line 206 of file PParseSeq.cpp.

206  {
207  p_isOptional = other.p_isOptional;
208  p_vecCmd = other.p_vecCmd;
209 
210 }
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
std ::vector< PParseCmd > p_vecCmd
Vector of command to be used for parsing.
Definition: PParseSeq.h:73

References p_isOptional, and p_vecCmd.

Referenced by operator=(), and PParseStep().

+ Here is the caller graph for this function:

◆ getIsOptional() [1/2]

bool & PParseStep::getIsOptional ( )

Get the variable p_isOptional.

Returns
True if the step is optional (as soon as the previous one or the next one is Ok)

Definition at line 171 of file PParseSeq.cpp.

171  {
172  return p_isOptional;
173 }

References p_isOptional.

◆ getIsOptional() [2/2]

bool PParseStep::getIsOptional ( ) const

Get the variable p_isOptional.

Returns
True if the step is optional (as soon as the previous one or the next one is Ok)

Definition at line 164 of file PParseSeq.cpp.

164  {
165  return p_isOptional;
166 }

References p_isOptional.

Referenced by testPParseStep().

+ Here is the caller graph for this function:

◆ getVecCmd() [1/2]

std::vector< PParseCmd > & PParseStep::getVecCmd ( )

Get the variable p_vecCmd.

Returns
Vector of command to be used for parsing

Definition at line 185 of file PParseSeq.cpp.

185  {
186  return p_vecCmd;
187 }

References p_vecCmd.

◆ getVecCmd() [2/2]

const std::vector< PParseCmd > & PParseStep::getVecCmd ( ) const

Get the variable p_vecCmd.

Returns
Vector of command to be used for parsing

Definition at line 178 of file PParseSeq.cpp.

178  {
179  return p_vecCmd;
180 }

References p_vecCmd.

Referenced by createSequenceAllMatch(), loadParserSeq(), testPFileParserSeq(), and testPFileParserSeqOneStep().

+ Here is the caller graph for this function:

◆ initialisationPParseStep()

void PParseStep::initialisationPParseStep ( )
private

Initialisation function of the class PParseStep.

True if the step is optional (as soon as the previous one or the next one is Ok)

Definition at line 197 of file PParseSeq.cpp.

197  {
199  p_isOptional = 0;
200 
201 }

References p_isOptional.

Referenced by PParseStep().

+ Here is the caller graph for this function:

◆ operator=()

PParseStep & PParseStep::operator= ( const PParseStep other)

Equal operator of the class PParseStep.

Parameters
other: other variable
Returns
copied Describes a parsing step

Definition at line 142 of file PParseSeq.cpp.

142  {
143  copyPParseStep(other);
144  return *this;
145 }

References copyPParseStep().

+ Here is the call graph for this function:

◆ setIsOptional()

void PParseStep::setIsOptional ( bool  isOptional)

Set the variable p_isOptional, of type 'bool'.

Parameters
isOptional: True if the step is optional (as soon as the previous one or the next one is Ok)

Definition at line 150 of file PParseSeq.cpp.

150  {
151  p_isOptional = isOptional;
152 }

References p_isOptional.

Referenced by createSequenceAllMatch(), loadParserSeq(), testPFileParserSeq(), and testPFileParserSeqOneStep().

+ Here is the caller graph for this function:

◆ setVecCmd()

void PParseStep::setVecCmd ( const std ::vector< PParseCmd > &  vecCmd)

Set the variable p_vecCmd, of type 'std ::vector<PParseCmd>'.

Parameters
vecCmd: Vector of command to be used for parsing

Definition at line 157 of file PParseSeq.cpp.

157  {
158  p_vecCmd = vecCmd;
159 }

References p_vecCmd.

Referenced by testPParseStep().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_isOptional

bool PParseStep::p_isOptional
private

True if the step is optional (as soon as the previous one or the next one is Ok)

Definition at line 71 of file PParseSeq.h.

Referenced by copyPParseStep(), getIsOptional(), initialisationPParseStep(), and setIsOptional().

◆ p_vecCmd

std ::vector<PParseCmd> PParseStep::p_vecCmd
private

Vector of command to be used for parsing.

Definition at line 73 of file PParseSeq.h.

Referenced by copyPParseStep(), getVecCmd(), and setVecCmd().


The documentation for this class was generated from the following files: