PhoenixYml
1.4.3
Yml parser for Phoenix
Toggle main menu visibility
Loading...
Searching...
No Matches
VecValue.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
9
10
#include "
VecValue.h
"
11
13
VecValue::VecValue
(){
14
initialisationVecValue
();
15
}
16
18
20
VecValue::VecValue
(
const
VecValue
& other){
21
copyVecValue
(other);
22
}
23
25
VecValue::~VecValue
(){
26
27
}
28
30
33
VecValue
&
VecValue::operator =
(
const
VecValue
& other){
34
copyVecValue
(other);
35
return
*
this
;
36
}
37
39
41
void
VecValue::setValue
(
const
PString & value){
42
p_value
= value;
43
}
44
46
48
void
VecValue::setKey
(
const
PString & key){
49
p_key
= key;
50
}
51
53
55
void
VecValue::setVecChild
(
const
std::vector<VecValue> & vecChild){
56
p_vecChild
= vecChild;
57
}
58
60
62
void
VecValue::setType
(
const
VecValueType::VecValueType
& type){
63
p_type
= type;
64
}
65
67
69
void
VecValue::setIndentation
(
size_t
indentation){
70
p_indentation
= indentation;
71
}
72
74
76
const
PString &
VecValue::getValue
()
const
{
77
return
p_value
;
78
}
79
81
83
PString &
VecValue::getValue
(){
84
return
p_value
;
85
}
86
88
90
const
PString &
VecValue::getKey
()
const
{
91
return
p_key
;
92
}
93
95
97
PString &
VecValue::getKey
(){
98
return
p_key
;
99
}
100
102
104
const
std::vector<VecValue> &
VecValue::getVecChild
()
const
{
105
return
p_vecChild
;
106
}
107
109
111
std::vector<VecValue> &
VecValue::getVecChild
(){
112
return
p_vecChild
;
113
}
114
116
118
const
VecValueType::VecValueType
&
VecValue::getType
()
const
{
119
return
p_type
;
120
}
121
123
125
VecValueType::VecValueType
&
VecValue::getType
(){
126
return
p_type
;
127
}
128
130
132
size_t
VecValue::getIndentation
()
const
{
133
return
p_indentation
;
134
}
135
137
139
size_t
&
VecValue::getIndentation
(){
140
return
p_indentation
;
141
}
142
144
146
void
VecValue::copyVecValue
(
const
VecValue
& other){
147
p_value
= other.
p_value
;
148
p_key
= other.
p_key
;
149
p_vecChild
= other.
p_vecChild
;
150
p_type
= other.
p_type
;
151
p_indentation
= other.
p_indentation
;
152
}
153
155
void
VecValue::initialisationVecValue
(){
156
p_value
=
""
;
157
p_key
=
""
;
158
p_indentation
= 0lu;
159
}
160
VecValue.h
VecValue::getType
const VecValueType::VecValueType & getType() const
Gets the type of the VecValue.
Definition
VecValue.cpp:118
VecValue::copyVecValue
void copyVecValue(const VecValue &other)
Copy Function of class VecValue.
Definition
VecValue.cpp:146
VecValue::p_vecChild
std::vector< VecValue > p_vecChild
Vector of sub VecValue.
Definition
VecValue.h:45
VecValue::initialisationVecValue
void initialisationVecValue()
Initialisation Function of class VecValue.
Definition
VecValue.cpp:155
VecValue::setIndentation
void setIndentation(size_t indentation)
Sets the indentation of the VecValue.
Definition
VecValue.cpp:69
VecValue::setValue
void setValue(const PString &value)
Sets the value of the VecValue.
Definition
VecValue.cpp:41
VecValue::p_indentation
size_t p_indentation
Indentation of the VecValue.
Definition
VecValue.h:49
VecValue::getIndentation
size_t getIndentation() const
Gets the indentation of the VecValue.
Definition
VecValue.cpp:132
VecValue::setKey
void setKey(const PString &key)
Sets the key of the VecValue.
Definition
VecValue.cpp:48
VecValue::operator=
VecValue & operator=(const VecValue &other)
Operator = of class VecValue.
Definition
VecValue.cpp:33
VecValue::getVecChild
const std::vector< VecValue > & getVecChild() const
Gets the vecChild of the VecValue.
Definition
VecValue.cpp:104
VecValue::p_type
VecValueType::VecValueType p_type
Type of the VecValue.
Definition
VecValue.h:47
VecValue::p_key
PString p_key
Key of the current entry.
Definition
VecValue.h:43
VecValue::getValue
const PString & getValue() const
Gets the value of the VecValue.
Definition
VecValue.cpp:76
VecValue::~VecValue
virtual ~VecValue()
Destructor of class VecValue.
Definition
VecValue.cpp:25
VecValue::setVecChild
void setVecChild(const std::vector< VecValue > &vecChild)
Sets the vecChild of the VecValue.
Definition
VecValue.cpp:55
VecValue::getKey
const PString & getKey() const
Gets the key of the VecValue.
Definition
VecValue.cpp:90
VecValue::setType
void setType(const VecValueType::VecValueType &type)
Sets the type of the VecValue.
Definition
VecValue.cpp:62
VecValue::VecValue
VecValue()
Constructor of class VecValue.
Definition
VecValue.cpp:13
VecValue::p_value
PString p_value
Value of the current entry.
Definition
VecValue.h:41
VecValueType::VecValueType
VecValueType
Type of a VecValue.
Definition
VecValueType.h:12
src
VecValue.cpp
Generated by
1.17.0