PhoenixYml  0.5.0
Yml parser for Phoenix
Loading...
Searching...
No Matches
VecValue Class Reference

Vector of keys and values. More...

#include <VecValue.h>

Public Member Functions

size_t & getIndentation ()
 Gets the indentation of the VecValue.
 
size_t getIndentation () const
 Gets the indentation of the VecValue.
 
PString & getKey ()
 Gets the key of the VecValue.
 
const PString & getKey () const
 Gets the key of the VecValue.
 
VecValueType::VecValueTypegetType ()
 Gets the type of the VecValue.
 
const VecValueType::VecValueTypegetType () const
 Gets the type of the VecValue.
 
PString & getValue ()
 Gets the value of the VecValue.
 
const PString & getValue () const
 Gets the value of the VecValue.
 
std::vector< VecValue > & getVecChild ()
 Gets the vecChild of the VecValue.
 
const std::vector< VecValue > & getVecChild () const
 Gets the vecChild of the VecValue.
 
VecValueoperator= (const VecValue &other)
 Operator = of class VecValue.
 
void setIndentation (size_t indentation)
 Sets the indentation of the VecValue.
 
void setKey (const PString &key)
 Sets the key of the VecValue.
 
void setType (const VecValueType::VecValueType &type)
 Sets the type of the VecValue.
 
void setValue (const PString &value)
 Sets the value of the VecValue.
 
void setVecChild (const std::vector< VecValue > &vecChild)
 Sets the vecChild of the VecValue.
 
 VecValue ()
 Constructor of class VecValue.
 
 VecValue (const VecValue &other)
 Copy Constructor of class VecValue.
 
virtual ~VecValue ()
 Destructor of class VecValue.
 

Protected Member Functions

void copyVecValue (const VecValue &other)
 Copy Function of class VecValue.
 

Private Member Functions

void initialisationVecValue ()
 Initialisation Function of class VecValue.
 

Private Attributes

size_t p_indentation
 Indentation of the VecValue.
 
PString p_key
 Key of the current entry.
 
VecValueType::VecValueType p_type
 Type of the VecValue.
 
PString p_value
 Value of the current entry.
 
std::vector< VecValuep_vecChild
 Vector of sub VecValue.
 

Detailed Description

Vector of keys and values.

Definition at line 15 of file VecValue.h.

Constructor & Destructor Documentation

◆ VecValue() [1/2]

VecValue::VecValue ( )

Constructor of class VecValue.

Definition at line 13 of file VecValue.cpp.

13 {
15}
void initialisationVecValue()
Initialisation Function of class VecValue.
Definition VecValue.cpp:155

References initialisationVecValue().

Referenced by copyVecValue(), operator=(), and VecValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ VecValue() [2/2]

VecValue::VecValue ( const VecValue & other)

Copy Constructor of class VecValue.

Parameters
other: VecValue we want ot copy

Definition at line 20 of file VecValue.cpp.

20 {
21 copyVecValue(other);
22}
void copyVecValue(const VecValue &other)
Copy Function of class VecValue.
Definition VecValue.cpp:146

References copyVecValue(), and VecValue().

+ Here is the call graph for this function:

◆ ~VecValue()

VecValue::~VecValue ( )
virtual

Destructor of class VecValue.

Definition at line 25 of file VecValue.cpp.

25 {
26
27}

Member Function Documentation

◆ copyVecValue()

void VecValue::copyVecValue ( const VecValue & other)
protected

Copy Function of class VecValue.

Parameters
other: VecValue we want ot copy

Definition at line 146 of file VecValue.cpp.

146 {
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}
std::vector< VecValue > p_vecChild
Vector of sub VecValue.
Definition VecValue.h:45
size_t p_indentation
Indentation of the VecValue.
Definition VecValue.h:49
VecValueType::VecValueType p_type
Type of the VecValue.
Definition VecValue.h:47
PString p_key
Key of the current entry.
Definition VecValue.h:43
PString p_value
Value of the current entry.
Definition VecValue.h:41

References p_indentation, p_key, p_type, p_value, p_vecChild, and VecValue().

Referenced by operator=(), and VecValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getIndentation() [1/2]

size_t & VecValue::getIndentation ( )

Gets the indentation of the VecValue.

Returns
indentation of the VecValue

Definition at line 139 of file VecValue.cpp.

139 {
140 return p_indentation;
141}

References p_indentation.

◆ getIndentation() [2/2]

size_t VecValue::getIndentation ( ) const

Gets the indentation of the VecValue.

Returns
indentation of the VecValue

Definition at line 132 of file VecValue.cpp.

132 {
133 return p_indentation;
134}

References p_indentation.

Referenced by getParentVecValueListItem().

+ Here is the caller graph for this function:

◆ getKey() [1/2]

PString & VecValue::getKey ( )

Gets the key of the VecValue.

Returns
key of the VecValue

Definition at line 97 of file VecValue.cpp.

97 {
98 return p_key;
99}

References p_key.

◆ getKey() [2/2]

const PString & VecValue::getKey ( ) const

Gets the key of the VecValue.

Returns
key of the VecValue

Definition at line 90 of file VecValue.cpp.

90 {
91 return p_key;
92}

References p_key.

Referenced by vecValueToDicoValue().

+ Here is the caller graph for this function:

◆ getType() [1/2]

VecValueType::VecValueType & VecValue::getType ( )

Gets the type of the VecValue.

Returns
type of the VecValue

Definition at line 125 of file VecValue.cpp.

125 {
126 return p_type;
127}

References p_type.

◆ getType() [2/2]

const VecValueType::VecValueType & VecValue::getType ( ) const

Gets the type of the VecValue.

Returns
type of the VecValue

Definition at line 118 of file VecValue.cpp.

118 {
119 return p_type;
120}

References p_type.

Referenced by getParentVecValueListItem().

+ Here is the caller graph for this function:

◆ getValue() [1/2]

PString & VecValue::getValue ( )

Gets the value of the VecValue.

Returns
value of the VecValue

Definition at line 83 of file VecValue.cpp.

83 {
84 return p_value;
85}

References p_value.

◆ getValue() [2/2]

const PString & VecValue::getValue ( ) const

Gets the value of the VecValue.

Returns
value of the VecValue

Definition at line 76 of file VecValue.cpp.

76 {
77 return p_value;
78}

References p_value.

Referenced by vecValueToDicoValue().

+ Here is the caller graph for this function:

◆ getVecChild() [1/2]

std::vector< VecValue > & VecValue::getVecChild ( )

Gets the vecChild of the VecValue.

Returns
vecChild of the VecValue

Definition at line 111 of file VecValue.cpp.

111 {
112 return p_vecChild;
113}

References p_vecChild.

◆ getVecChild() [2/2]

const std::vector< VecValue > & VecValue::getVecChild ( ) const

Gets the vecChild of the VecValue.

Returns
vecChild of the VecValue

Definition at line 104 of file VecValue.cpp.

104 {
105 return p_vecChild;
106}

References p_vecChild.

Referenced by addChildToParentVecValue(), addChildToParentVecValueAddListItem(), getLastVecValue(), getVecParentPtr(), parse_yml_compactListContent(), and vecValueToDicoValue().

+ Here is the caller graph for this function:

◆ initialisationVecValue()

void VecValue::initialisationVecValue ( )
private

Initialisation Function of class VecValue.

Definition at line 155 of file VecValue.cpp.

155 {
156 p_value = "";
157 p_key = "";
158 p_indentation = 0lu;
159}

References p_indentation, p_key, and p_value.

Referenced by VecValue().

+ Here is the caller graph for this function:

◆ operator=()

VecValue & VecValue::operator= ( const VecValue & other)

Operator = of class VecValue.

Parameters
other: VecValue we want ot copy
Returns
copied class VecValue

Definition at line 33 of file VecValue.cpp.

33 {
34 copyVecValue(other);
35 return *this;
36}

References copyVecValue(), and VecValue().

+ Here is the call graph for this function:

◆ setIndentation()

void VecValue::setIndentation ( size_t indentation)

Sets the indentation of the VecValue.

Parameters
indentation: indentation of the VecValue

Definition at line 69 of file VecValue.cpp.

69 {
70 p_indentation = indentation;
71}

References p_indentation.

Referenced by parse_yml_dicoContent(), parse_yml_listContent(), and parser_yml().

+ Here is the caller graph for this function:

◆ setKey()

void VecValue::setKey ( const PString & key)

Sets the key of the VecValue.

Parameters
key: key of the VecValue

Definition at line 48 of file VecValue.cpp.

48 {
49 p_key = key;
50}

References p_key.

Referenced by parse_yml_dicoContent(), and parse_yml_listContent().

+ Here is the caller graph for this function:

◆ setType()

void VecValue::setType ( const VecValueType::VecValueType & type)

Sets the type of the VecValue.

Parameters
type: type of the VecValue

Definition at line 62 of file VecValue.cpp.

62 {
63 p_type = type;
64}

References p_type.

Referenced by parse_yml_dicoContent(), parse_yml_dicoSetValue(), parse_yml_listContent(), and parser_yml().

+ Here is the caller graph for this function:

◆ setValue()

void VecValue::setValue ( const PString & value)

Sets the value of the VecValue.

Parameters
value: value of the VecValue

Definition at line 41 of file VecValue.cpp.

41 {
42 p_value = value;
43}

References p_value.

Referenced by parse_yml_compactListContent(), parse_yml_dicoSetValue(), and parse_yml_playCurrentText().

+ Here is the caller graph for this function:

◆ setVecChild()

void VecValue::setVecChild ( const std::vector< VecValue > & vecChild)

Sets the vecChild of the VecValue.

Parameters
vecChild: vecChild of the VecValue

Definition at line 55 of file VecValue.cpp.

55 {
56 p_vecChild = vecChild;
57}

References p_vecChild.

Member Data Documentation

◆ p_indentation

size_t VecValue::p_indentation
private

Indentation of the VecValue.

Definition at line 49 of file VecValue.h.

Referenced by copyVecValue(), getIndentation(), getIndentation(), initialisationVecValue(), and setIndentation().

◆ p_key

PString VecValue::p_key
private

Key of the current entry.

Definition at line 43 of file VecValue.h.

Referenced by copyVecValue(), getKey(), getKey(), initialisationVecValue(), and setKey().

◆ p_type

VecValueType::VecValueType VecValue::p_type
private

Type of the VecValue.

Definition at line 47 of file VecValue.h.

Referenced by copyVecValue(), getType(), getType(), and setType().

◆ p_value

PString VecValue::p_value
private

Value of the current entry.

Definition at line 41 of file VecValue.h.

Referenced by copyVecValue(), getValue(), getValue(), initialisationVecValue(), and setValue().

◆ p_vecChild

std::vector<VecValue> VecValue::p_vecChild
private

Vector of sub VecValue.

Definition at line 45 of file VecValue.h.

Referenced by copyVecValue(), getVecChild(), getVecChild(), and setVecChild().


The documentation for this class was generated from the following files: