PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
PNestedCall.cpp
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 
8 #include "PNestedCall.h"
9 
12 
13 }
14 
16 
19  copyPNestedStr(other);
20 }
21 
24 
25 }
26 
28 
32  copyPNestedStr(other);
33  return *this;
34 }
35 
37 
39 void PNestedStr::setValue(const PString & value){
40  p_value = value;
41 }
42 
44 
46 void PNestedStr::setIsVarCall(bool isVarCall){
47  p_isVarCall = isVarCall;
48 }
49 
51 
53 const PString & PNestedStr::getValue() const{
54  return p_value;
55 }
56 
58 
61  return p_value;
62 }
63 
65 
68  return p_isVarCall;
69 }
70 
72 
75  return p_isVarCall;
76 }
77 
79 
82  p_value = other.p_value;
83  p_isVarCall = other.p_isVarCall;
84 }
85 
88 
89 }
90 
92 
95  copyPNestedCall(other);
96 }
97 
100 
101 }
102 
104 
108  copyPNestedCall(other);
109  return *this;
110 }
111 
113 
115 void PNestedCall::setName(const PString & name){
116  p_name = name;
117 }
118 
120 
122 void PNestedCall::setVecNestedStr(const std::vector<PNestedStr> & vecNestedStr){
123  p_vecNestedStr = vecNestedStr;
124 }
125 
127 
130  return p_name;
131 }
132 
134 
137  return p_name;
138 }
139 
141 
143 const std::vector<PNestedStr> & PNestedCall::getVecNestedStr() const{
144  return p_vecNestedStr;
145 }
146 
148 
150 std::vector<PNestedStr> & PNestedCall::getVecNestedStr(){
151  return p_vecNestedStr;
152 }
153 
155 
158  p_name = other.p_name;
160 }
161 
Class used to parse nested call variables.
Definition: PNestedCall.h:36
std::vector< PNestedStr > p_vecNestedStr
Vector of PNestedStr.
Definition: PNestedCall.h:54
PString p_name
Name of the Variable.
Definition: PNestedCall.h:52
void setName(const PString &name)
Sets the name of the PNestedCall.
PNestedCall & operator=(const PNestedCall &other)
Operator = of class PNestedCall.
void copyPNestedCall(const PNestedCall &other)
Copy Function of class PNestedCall.
virtual ~PNestedCall()
Destructor of class PNestedCall.
Definition: PNestedCall.cpp:99
const PString & getName() const
Gets the name of the PNestedCall.
const std::vector< PNestedStr > & getVecNestedStr() const
Gets the vecNestedStr of the PNestedCall.
void setVecNestedStr(const std::vector< PNestedStr > &vecNestedStr)
Sets the vecNestedStr of the PNestedCall.
PNestedCall()
Constructor of class PNestedCall.
Definition: PNestedCall.cpp:87
Nested string or variable call.
Definition: PNestedCall.h:14
bool p_isVarCall
True if the PNestedStr calls a variable.
Definition: PNestedCall.h:32
void setValue(const PString &value)
Sets the value of the PNestedStr.
Definition: PNestedCall.cpp:39
PNestedStr()
Constructor of class PNestedStr.
Definition: PNestedCall.cpp:11
bool getIsVarCall() const
Gets the isVarCall of the PNestedStr.
Definition: PNestedCall.cpp:67
void copyPNestedStr(const PNestedStr &other)
Copy Function of class PNestedStr.
Definition: PNestedCall.cpp:81
virtual ~PNestedStr()
Destructor of class PNestedStr.
Definition: PNestedCall.cpp:23
void setIsVarCall(bool isVarCall)
Sets the isVarCall of the PNestedStr.
Definition: PNestedCall.cpp:46
const PString & getValue() const
Gets the value of the PNestedStr.
Definition: PNestedCall.cpp:53
PNestedStr & operator=(const PNestedStr &other)
Operator = of class PNestedStr.
Definition: PNestedCall.cpp:31
PString p_value
String which can be a call to an other variable or a simple string.
Definition: PNestedCall.h:30
Extends the std::string.
Definition: PString.h:16