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