PhoenixYml
1.4.3
Yml parser for Phoenix
Toggle main menu visibility
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
15
class
VecValue
{
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
;
33
VecValueType::VecValueType
&
getType
();
34
size_t
getIndentation
()
const
;
35
size_t
&
getIndentation
();
36
protected
:
37
void
copyVecValue
(
const
VecValue
& other);
38
private
:
39
void
initialisationVecValue
();
41
PString
p_value
;
43
PString
p_key
;
45
std::vector<VecValue>
p_vecChild
;
47
VecValueType::VecValueType
p_type
;
49
size_t
p_indentation
;
50
};
51
52
53
54
#endif
55
VecValueType.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.h
Generated by
1.17.0