PhoenixFileParser
1.7.3
Set of tools to ease file parsing
Toggle main menu visibility
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
11
PNestedStr::PNestedStr
(){
12
13
}
14
16
18
PNestedStr::PNestedStr
(
const
PNestedStr
& other){
19
copyPNestedStr
(other);
20
}
21
23
PNestedStr::~PNestedStr
(){
24
25
}
26
28
31
PNestedStr
&
PNestedStr::operator =
(
const
PNestedStr
& other){
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
60
PString &
PNestedStr::getValue
(){
61
return
p_value
;
62
}
63
65
67
bool
PNestedStr::getIsVarCall
()
const
{
68
return
p_isVarCall
;
69
}
70
72
74
bool
&
PNestedStr::getIsVarCall
(){
75
return
p_isVarCall
;
76
}
77
79
81
void
PNestedStr::copyPNestedStr
(
const
PNestedStr
& other){
82
p_value
= other.
p_value
;
83
p_isVarCall
= other.
p_isVarCall
;
84
}
85
87
PNestedCall::PNestedCall
(){
88
89
}
90
92
94
PNestedCall::PNestedCall
(
const
PNestedCall
& other){
95
copyPNestedCall
(other);
96
}
97
99
PNestedCall::~PNestedCall
(){
100
101
}
102
104
107
PNestedCall
&
PNestedCall::operator =
(
const
PNestedCall
& other){
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
129
const
PString &
PNestedCall::getName
()
const
{
130
return
p_name
;
131
}
132
134
136
PString &
PNestedCall::getName
(){
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
157
void
PNestedCall::copyPNestedCall
(
const
PNestedCall
& other){
158
p_name
= other.
p_name
;
159
p_vecNestedStr
= other.
p_vecNestedStr
;
160
}
161
PNestedCall.h
PNestedCall::p_vecNestedStr
std::vector< PNestedStr > p_vecNestedStr
Vector of PNestedStr.
Definition
PNestedCall.h:54
PNestedCall::p_name
PString p_name
Name of the Variable.
Definition
PNestedCall.h:52
PNestedCall::setName
void setName(const PString &name)
Sets the name of the PNestedCall.
Definition
PNestedCall.cpp:115
PNestedCall::operator=
PNestedCall & operator=(const PNestedCall &other)
Operator = of class PNestedCall.
Definition
PNestedCall.cpp:107
PNestedCall::copyPNestedCall
void copyPNestedCall(const PNestedCall &other)
Copy Function of class PNestedCall.
Definition
PNestedCall.cpp:157
PNestedCall::~PNestedCall
virtual ~PNestedCall()
Destructor of class PNestedCall.
Definition
PNestedCall.cpp:99
PNestedCall::getName
const PString & getName() const
Gets the name of the PNestedCall.
Definition
PNestedCall.cpp:129
PNestedCall::getVecNestedStr
const std::vector< PNestedStr > & getVecNestedStr() const
Gets the vecNestedStr of the PNestedCall.
Definition
PNestedCall.cpp:143
PNestedCall::setVecNestedStr
void setVecNestedStr(const std::vector< PNestedStr > &vecNestedStr)
Sets the vecNestedStr of the PNestedCall.
Definition
PNestedCall.cpp:122
PNestedCall::PNestedCall
PNestedCall()
Constructor of class PNestedCall.
Definition
PNestedCall.cpp:87
PNestedStr::p_isVarCall
bool p_isVarCall
True if the PNestedStr calls a variable.
Definition
PNestedCall.h:32
PNestedStr::setValue
void setValue(const PString &value)
Sets the value of the PNestedStr.
Definition
PNestedCall.cpp:39
PNestedStr::PNestedStr
PNestedStr()
Constructor of class PNestedStr.
Definition
PNestedCall.cpp:11
PNestedStr::getIsVarCall
bool getIsVarCall() const
Gets the isVarCall of the PNestedStr.
Definition
PNestedCall.cpp:67
PNestedStr::copyPNestedStr
void copyPNestedStr(const PNestedStr &other)
Copy Function of class PNestedStr.
Definition
PNestedCall.cpp:81
PNestedStr::~PNestedStr
virtual ~PNestedStr()
Destructor of class PNestedStr.
Definition
PNestedCall.cpp:23
PNestedStr::setIsVarCall
void setIsVarCall(bool isVarCall)
Sets the isVarCall of the PNestedStr.
Definition
PNestedCall.cpp:46
PNestedStr::getValue
const PString & getValue() const
Gets the value of the PNestedStr.
Definition
PNestedCall.cpp:53
PNestedStr::operator=
PNestedStr & operator=(const PNestedStr &other)
Operator = of class PNestedStr.
Definition
PNestedCall.cpp:31
PNestedStr::p_value
PString p_value
String which can be a call to an other variable or a simple string.
Definition
PNestedCall.h:30
src
PNestedCall.cpp
Generated by
1.17.0