PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
PNestedStr Class Reference

Nested string or variable call. More...

#include <PNestedCall.h>

+ Collaboration diagram for PNestedStr:

Public Member Functions

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

Protected Member Functions

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

Private Attributes

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

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 }

◆ 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.
Definition: PNestedCall.cpp:81

References copyPNestedStr().

+ 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;
83  p_isVarCall = other.p_isVarCall;
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, and p_value.

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

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

+ 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(), 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(), and setValue().


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