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

Parser command. More...

#include <PParseSeq.h>

Public Member Functions

bool & getIsMatch ()
 Get the variable p_isMatch.
 
bool getIsMatch () const
 Get the variable p_isMatch.
 
PString & getStr ()
 Get the variable p_str.
 
const PString & getStr () const
 Get the variable p_str.
 
PParseCmdoperator= (const PParseCmd &other)
 Equal operator of the class PParseCmd.
 
 PParseCmd ()
 Constructor of the class PParseCmd.
 
 PParseCmd (const PParseCmd &other)
 Copy constructor of the class PParseCmd.
 
void setIsMatch (bool isMatch)
 Set the variable p_isMatch, of type 'bool'.
 
void setStr (const PString &str)
 Set the variable p_str, of type 'PString'.
 
virtual ~PParseCmd ()
 Destructor of the class PParseCmd.
 

Private Member Functions

void copyPParseCmd (const PParseCmd &other)
 Copy function of the class PParseCmd.
 
void initialisationPParseCmd ()
 Initialisation function of the class PParseCmd.
 

Private Attributes

bool p_isMatch
 True to use isMatch function instead of strComposedOf.
 
PString p_str
 String to be used for the parsing.
 

Detailed Description

Parser command.

Definition at line 33 of file PParseSeq.h.

Constructor & Destructor Documentation

◆ PParseCmd() [1/2]

PParseCmd::PParseCmd ( )

Constructor of the class PParseCmd.

Definition at line 22 of file PParseSeq.cpp.

22 {
24}
void initialisationPParseCmd()
Initialisation function of the class PParseCmd.
Definition PParseSeq.cpp:98

References initialisationPParseCmd().

Referenced by copyPParseCmd(), operator=(), and PParseCmd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PParseCmd() [2/2]

PParseCmd::PParseCmd ( const PParseCmd & other)

Copy constructor of the class PParseCmd.

Parameters
other: other variable

Definition at line 29 of file PParseSeq.cpp.

29 {
31 copyPParseCmd(other);
32}
void copyPParseCmd(const PParseCmd &other)
Copy function of the class PParseCmd.

References copyPParseCmd(), initialisationPParseCmd(), and PParseCmd().

+ Here is the call graph for this function:

◆ ~PParseCmd()

PParseCmd::~PParseCmd ( )
virtual

Destructor of the class PParseCmd.

Definition at line 35 of file PParseSeq.cpp.

35 {
36
37}

Member Function Documentation

◆ copyPParseCmd()

void PParseCmd::copyPParseCmd ( const PParseCmd & other)
private

Copy function of the class PParseCmd.

Parameters
other: other variable

Definition at line 107 of file PParseSeq.cpp.

107 {
108 p_isMatch = other.p_isMatch;
109 p_str = other.p_str;
110
111}
bool p_isMatch
True to use isMatch function instead of strComposedOf.
Definition PParseSeq.h:49
PString p_str
String to be used for the parsing.
Definition PParseSeq.h:51

References p_isMatch, p_str, and PParseCmd().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getIsMatch() [1/2]

bool & PParseCmd::getIsMatch ( )

Get the variable p_isMatch.

Returns
True to use isMatch function instead of strComposedOf

Definition at line 72 of file PParseSeq.cpp.

72 {
73 return p_isMatch;
74}

References p_isMatch.

◆ getIsMatch() [2/2]

bool PParseCmd::getIsMatch ( ) const

Get the variable p_isMatch.

Returns
True to use isMatch function instead of strComposedOf

Definition at line 65 of file PParseSeq.cpp.

65 {
66 return p_isMatch;
67}

References p_isMatch.

◆ getStr() [1/2]

PString & PParseCmd::getStr ( )

Get the variable p_str.

Returns
String to be used for the parsing

Definition at line 86 of file PParseSeq.cpp.

86 {
87 return p_str;
88}

References p_str.

◆ getStr() [2/2]

const PString & PParseCmd::getStr ( ) const

Get the variable p_str.

Returns
String to be used for the parsing

Definition at line 79 of file PParseSeq.cpp.

79 {
80 return p_str;
81}

References p_str.

◆ initialisationPParseCmd()

void PParseCmd::initialisationPParseCmd ( )
private

Initialisation function of the class PParseCmd.

True to use isMatch function instead of strComposedOf

Definition at line 98 of file PParseSeq.cpp.

98 {
100 p_isMatch = 0;
101
102}

References p_isMatch.

Referenced by PParseCmd(), and PParseCmd().

+ Here is the caller graph for this function:

◆ operator=()

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

Equal operator of the class PParseCmd.

Parameters
other: other variable
Returns
copied Parser command

Definition at line 43 of file PParseSeq.cpp.

43 {
44 copyPParseCmd(other);
45 return *this;
46}

References copyPParseCmd(), and PParseCmd().

+ Here is the call graph for this function:

◆ setIsMatch()

void PParseCmd::setIsMatch ( bool isMatch)

Set the variable p_isMatch, of type 'bool'.

Parameters
isMatch: True to use isMatch function instead of strComposedOf

Definition at line 51 of file PParseSeq.cpp.

51 {
52 p_isMatch = isMatch;
53}

References p_isMatch.

◆ setStr()

void PParseCmd::setStr ( const PString & str)

Set the variable p_str, of type 'PString'.

Parameters
str: String to be used for the parsing

Definition at line 58 of file PParseSeq.cpp.

58 {
59 p_str = str;
60}

References p_str.

Member Data Documentation

◆ p_isMatch

bool PParseCmd::p_isMatch
private

True to use isMatch function instead of strComposedOf.

Definition at line 49 of file PParseSeq.h.

Referenced by copyPParseCmd(), getIsMatch(), getIsMatch(), initialisationPParseCmd(), and setIsMatch().

◆ p_str

PString PParseCmd::p_str
private

String to be used for the parsing.

Definition at line 51 of file PParseSeq.h.

Referenced by copyPParseCmd(), getStr(), getStr(), and setStr().


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