PhoenixFileParser  1.0.0
Set of tools to ease file parsing
Loading...
Searching...
No Matches
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
14
16
19 copyPNestedStr(other);
20}
21
26
28
32 copyPNestedStr(other);
33 return *this;
34}
35
37
39void PNestedStr::setValue(const PString & value){
40 p_value = value;
41}
42
44
46void PNestedStr::setIsVarCall(bool isVarCall){
47 p_isVarCall = isVarCall;
48}
49
51
53const 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;
84}
85
90
92
97
102
104
108 copyPNestedCall(other);
109 return *this;
110}
111
113
115void PNestedCall::setName(const PString & name){
116 p_name = name;
117}
118
120
122void PNestedCall::setVecNestedStr(const std::vector<PNestedStr> & vecNestedStr){
123 p_vecNestedStr = vecNestedStr;
124}
125
127
129const PString & PNestedCall::getName() const{
130 return p_name;
131}
132
134
137 return p_name;
138}
139
141
143const std::vector<PNestedStr> & PNestedCall::getVecNestedStr() const{
144 return p_vecNestedStr;
145}
146
148
150std::vector<PNestedStr> & PNestedCall::getVecNestedStr(){
151 return p_vecNestedStr;
152}
153
155
158 p_name = other.p_name;
160}
161
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.
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.
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.
PNestedStr()
Constructor of class PNestedStr.
bool getIsVarCall() const
Gets the isVarCall of the PNestedStr.
void copyPNestedStr(const PNestedStr &other)
Copy Function of class PNestedStr.
virtual ~PNestedStr()
Destructor of class PNestedStr.
void setIsVarCall(bool isVarCall)
Sets the isVarCall of the PNestedStr.
const PString & getValue() const
Gets the value of the PNestedStr.
PNestedStr & operator=(const PNestedStr &other)
Operator = of class PNestedStr.
PString p_value
String which can be a call to an other variable or a simple string.
Definition PNestedCall.h:30