PhoenixYml  0.5.0
Yml parser for Phoenix
Loading...
Searching...
No Matches
VecValue.h
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#ifndef __VECVALUE_H__
8#define __VECVALUE_H__
9
10#include <vector>
11#include "PString.h"
12#include "VecValueType.h"
13
16 public:
17 VecValue();
18 VecValue(const VecValue & other);
19 virtual ~VecValue();
20 VecValue & operator = (const VecValue & other);
21 void setValue(const PString & value);
22 void setKey(const PString & key);
23 void setVecChild(const std::vector<VecValue> & vecChild);
24 void setType(const VecValueType::VecValueType & type);
25 void setIndentation(size_t indentation);
26 const PString & getValue() const;
27 PString & getValue();
28 const PString & getKey() const;
29 PString & getKey();
30 const std::vector<VecValue> & getVecChild() const;
31 std::vector<VecValue> & getVecChild();
32 const VecValueType::VecValueType & getType() const;
34 size_t getIndentation() const;
35 size_t & getIndentation();
36 protected:
37 void copyVecValue(const VecValue & other);
38 private:
41 PString p_value;
43 PString p_key;
45 std::vector<VecValue> p_vecChild;
50};
51
52
53
54#endif
55
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.