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

Nested string or variable call. More...

#include <PNestedCall.h>

Public Member Functions

bool & getIsVarCall ()
 Gets the isVarCall of the PNestedStr.
 
bool getIsVarCall () const
 Gets the isVarCall of the PNestedStr.
 
PString & getValue ()
 Gets the value of the PNestedStr.
 
const PString & getValue () const
 Gets the value of the PNestedStr.
 
PNestedStroperator= (const PNestedStr &other)
 Operator = of class PNestedStr.
 
 PNestedStr ()
 Constructor of class PNestedStr.
 
 PNestedStr (const PNestedStr &other)
 Copy Constructor of class PNestedStr.
 
void setIsVarCall (bool isVarCall)
 Sets the isVarCall of the PNestedStr.
 
void setValue (const PString &value)
 Sets the value of the PNestedStr.
 
virtual ~PNestedStr ()
 Destructor of class PNestedStr.
 

Protected Member Functions

void copyPNestedStr (const PNestedStr &other)
 Copy Function of class PNestedStr.
 

Private Attributes

bool p_isVarCall
 True if the PNestedStr calls a variable.
 
PString p_value
 String which can be a call to an other variable or a simple string.
 

Detailed Description

Nested string or variable call.

Definition at line 14 of file PNestedCall.h.

Constructor & Destructor Documentation

◆ PNestedStr() [1/2]

PNestedStr::PNestedStr ( )

Constructor of class PNestedStr.

Definition at line 11 of file PNestedCall.cpp.

11 {
12
13}

Referenced by copyPNestedStr(), operator=(), and PNestedStr().

+ Here is the caller graph for this function:

◆ PNestedStr() [2/2]

PNestedStr::PNestedStr ( const PNestedStr & other)

Copy Constructor of class PNestedStr.

Parameters
other: PNestedStr we want ot copy

Definition at line 18 of file PNestedCall.cpp.

18 {
19 copyPNestedStr(other);
20}
void copyPNestedStr(const PNestedStr &other)
Copy Function of class PNestedStr.

References copyPNestedStr(), and PNestedStr().

+ Here is the call graph for this function:

◆ ~PNestedStr()

PNestedStr::~PNestedStr ( )
virtual

Destructor of class PNestedStr.

Definition at line 23 of file PNestedCall.cpp.

23 {
24
25}

Member Function Documentation

◆ copyPNestedStr()

void PNestedStr::copyPNestedStr ( const PNestedStr & other)
protected

Copy Function of class PNestedStr.

Parameters
other: PNestedStr we want ot copy

Definition at line 81 of file PNestedCall.cpp.

81 {
82 p_value = other.p_value;
84}
bool p_isVarCall
True if the PNestedStr calls a variable.
Definition PNestedCall.h:32
PString p_value
String which can be a call to an other variable or a simple string.
Definition PNestedCall.h:30

References p_isVarCall, p_value, and PNestedStr().

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

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

◆ getIsVarCall() [1/2]

bool & PNestedStr::getIsVarCall ( )

Gets the isVarCall of the PNestedStr.

Returns
isVarCall of the PNestedStr

Definition at line 74 of file PNestedCall.cpp.

74 {
75 return p_isVarCall;
76}

References p_isVarCall.

◆ getIsVarCall() [2/2]

bool PNestedStr::getIsVarCall ( ) const

Gets the isVarCall of the PNestedStr.

Returns
isVarCall of the PNestedStr

Definition at line 67 of file PNestedCall.cpp.

67 {
68 return p_isVarCall;
69}

References p_isVarCall.

◆ getValue() [1/2]

PString & PNestedStr::getValue ( )

Gets the value of the PNestedStr.

Returns
value of the PNestedStr

Definition at line 60 of file PNestedCall.cpp.

60 {
61 return p_value;
62}

References p_value.

◆ getValue() [2/2]

const PString & PNestedStr::getValue ( ) const

Gets the value of the PNestedStr.

Returns
value of the PNestedStr

Definition at line 53 of file PNestedCall.cpp.

53 {
54 return p_value;
55}

References p_value.

◆ operator=()

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

Operator = of class PNestedStr.

Parameters
other: PNestedStr we want ot copy
Returns
copied class PNestedStr

Definition at line 31 of file PNestedCall.cpp.

31 {
32 copyPNestedStr(other);
33 return *this;
34}

References copyPNestedStr(), and PNestedStr().

+ Here is the call graph for this function:

◆ setIsVarCall()

void PNestedStr::setIsVarCall ( bool isVarCall)

Sets the isVarCall of the PNestedStr.

Parameters
isVarCall: isVarCall of the PNestedStr

Definition at line 46 of file PNestedCall.cpp.

46 {
47 p_isVarCall = isVarCall;
48}

References p_isVarCall.

Referenced by createNestedCallFromStr(), and dico_create_nested_call().

+ Here is the caller graph for this function:

◆ setValue()

void PNestedStr::setValue ( const PString & value)

Sets the value of the PNestedStr.

Parameters
value: value of the PNestedStr

Definition at line 39 of file PNestedCall.cpp.

39 {
40 p_value = value;
41}

References p_value.

Referenced by createNestedCallFromStr(), and dico_create_nested_call().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_isVarCall

bool PNestedStr::p_isVarCall
private

True if the PNestedStr calls a variable.

Definition at line 32 of file PNestedCall.h.

Referenced by copyPNestedStr(), getIsVarCall(), getIsVarCall(), and setIsVarCall().

◆ p_value

PString PNestedStr::p_value
private

String which can be a call to an other variable or a simple string.

Definition at line 30 of file PNestedCall.h.

Referenced by copyPNestedStr(), getValue(), getValue(), and setValue().


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