PhoenixFileParser  1.0.0
Set of tools to ease file parsing
Loading...
Searching...
No Matches
PParseStep Class Reference

Describes a parsing step. More...

#include <PParseSeq.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

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.

References initialisationPParseStep().

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

+ Here is the call graph for this function:
+ Here is the caller 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.

References copyPParseStep(), initialisationPParseStep(), and PParseStep().

+ 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 {
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, p_vecCmd, and PParseStep().

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

+ Here is the call graph for this function:
+ 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.

◆ 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.

◆ 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(), and 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(), and PParseStep().

+ 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.

◆ 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.

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(), 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(), getVecCmd(), and setVecCmd().


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