![]() |
PhoenixYml
0.5.0
Yml parser for Phoenix
|
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::VecValueType & | getType () |
Gets the type of the VecValue. | |
const VecValueType::VecValueType & | getType () 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. | |
VecValue & | operator= (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< VecValue > | p_vecChild |
Vector of sub VecValue. | |
Vector of keys and values.
Definition at line 15 of file VecValue.h.
VecValue::VecValue | ( | ) |
Constructor of class VecValue.
Definition at line 13 of file VecValue.cpp.
References initialisationVecValue().
Referenced by copyVecValue(), operator=(), and VecValue().
VecValue::VecValue | ( | const VecValue & | other | ) |
Copy Constructor of class VecValue.
other | : VecValue we want ot copy |
Definition at line 20 of file VecValue.cpp.
References copyVecValue(), and VecValue().
|
virtual |
|
protected |
Copy Function of class VecValue.
other | : VecValue we want ot copy |
Definition at line 146 of file VecValue.cpp.
References p_indentation, p_key, p_type, p_value, p_vecChild, and VecValue().
Referenced by operator=(), and VecValue().
size_t & VecValue::getIndentation | ( | ) |
Gets the indentation of the VecValue.
Definition at line 139 of file VecValue.cpp.
References p_indentation.
size_t VecValue::getIndentation | ( | ) | const |
Gets the indentation of the VecValue.
Definition at line 132 of file VecValue.cpp.
References p_indentation.
Referenced by getParentVecValueListItem().
PString & VecValue::getKey | ( | ) |
const PString & VecValue::getKey | ( | ) | const |
Gets the key of the VecValue.
Definition at line 90 of file VecValue.cpp.
References p_key.
Referenced by vecValueToDicoValue().
VecValueType::VecValueType & VecValue::getType | ( | ) |
const VecValueType::VecValueType & VecValue::getType | ( | ) | const |
Gets the type of the VecValue.
Definition at line 118 of file VecValue.cpp.
References p_type.
Referenced by getParentVecValueListItem().
PString & VecValue::getValue | ( | ) |
const PString & VecValue::getValue | ( | ) | const |
Gets the value of the VecValue.
Definition at line 76 of file VecValue.cpp.
References p_value.
Referenced by vecValueToDicoValue().
std::vector< VecValue > & VecValue::getVecChild | ( | ) |
Gets the vecChild of the VecValue.
Definition at line 111 of file VecValue.cpp.
References p_vecChild.
const std::vector< VecValue > & VecValue::getVecChild | ( | ) | const |
Gets the vecChild of the VecValue.
Definition at line 104 of file VecValue.cpp.
References p_vecChild.
Referenced by addChildToParentVecValue(), addChildToParentVecValueAddListItem(), getLastVecValue(), getVecParentPtr(), parse_yml_compactListContent(), and vecValueToDicoValue().
|
private |
Initialisation Function of class VecValue.
Definition at line 155 of file VecValue.cpp.
References p_indentation, p_key, and p_value.
Referenced by VecValue().
Operator = of class VecValue.
other | : VecValue we want ot copy |
Definition at line 33 of file VecValue.cpp.
References copyVecValue(), and VecValue().
void VecValue::setIndentation | ( | size_t | indentation | ) |
Sets the indentation of the VecValue.
indentation | : indentation of the VecValue |
Definition at line 69 of file VecValue.cpp.
References p_indentation.
Referenced by parse_yml_dicoContent(), parse_yml_listContent(), and parser_yml().
void VecValue::setKey | ( | const PString & | key | ) |
Sets the key of the VecValue.
key | : key of the VecValue |
Definition at line 48 of file VecValue.cpp.
References p_key.
Referenced by parse_yml_dicoContent(), and parse_yml_listContent().
void VecValue::setType | ( | const VecValueType::VecValueType & | type | ) |
Sets the type of the VecValue.
type | : type of the VecValue |
Definition at line 62 of file VecValue.cpp.
References p_type.
Referenced by parse_yml_dicoContent(), parse_yml_dicoSetValue(), parse_yml_listContent(), and parser_yml().
void VecValue::setValue | ( | const PString & | value | ) |
Sets the value of the VecValue.
value | : value of the VecValue |
Definition at line 41 of file VecValue.cpp.
References p_value.
Referenced by parse_yml_compactListContent(), parse_yml_dicoSetValue(), and parse_yml_playCurrentText().
void VecValue::setVecChild | ( | const std::vector< VecValue > & | vecChild | ) |
Sets the vecChild of the VecValue.
vecChild | : vecChild of the VecValue |
Definition at line 55 of file VecValue.cpp.
References p_vecChild.
|
private |
Indentation of the VecValue.
Definition at line 49 of file VecValue.h.
Referenced by copyVecValue(), getIndentation(), getIndentation(), initialisationVecValue(), and setIndentation().
|
private |
Key of the current entry.
Definition at line 43 of file VecValue.h.
Referenced by copyVecValue(), getKey(), getKey(), initialisationVecValue(), and setKey().
|
private |
Type of the VecValue.
Definition at line 47 of file VecValue.h.
Referenced by copyVecValue(), getType(), getType(), and setType().
|
private |
Value of the current entry.
Definition at line 41 of file VecValue.h.
Referenced by copyVecValue(), getValue(), getValue(), initialisationVecValue(), and setValue().
|
private |
Vector of sub VecValue.
Definition at line 45 of file VecValue.h.
Referenced by copyVecValue(), getVecChild(), getVecChild(), and setVecChild().