![]() |
|
PhoenixProtocolBuffer
1.0.1
Set of tools to decode offset from protocol buffer
|
Configuration to be used to create a field from a yml file. More...
#include <AbtractField.h>
Public Member Functions | |
| FieldConfig () | |
| Constructor of class FieldConfig. | |
| FieldConfig (const FieldConfig &other) | |
| Copy Constructor of class FieldConfig. | |
| size_t & | getId () |
| Gets the id of the FieldConfig. | |
| size_t | getId () const |
| Gets the id of the FieldConfig. | |
| bool & | getIsArray () |
| Gets the isArray of the FieldConfig. | |
| bool | getIsArray () const |
| Gets the isArray of the FieldConfig. | |
| PString & | getName () |
| Gets the name of the FieldConfig. | |
| const PString & | getName () const |
| Gets the name of the FieldConfig. | |
| FieldType::FieldType & | getType () |
| Gets the type of the FieldConfig. | |
| const FieldType::FieldType & | getType () const |
| Gets the type of the FieldConfig. | |
| std::map< PString, FieldConfig > & | getVecChildren () |
| Gets the vecChildren of the FieldConfig. | |
| const std::map< PString, FieldConfig > & | getVecChildren () const |
| Gets the vecChildren of the FieldConfig. | |
| FieldConfig & | operator= (const FieldConfig &other) |
| Operator = of class FieldConfig. | |
| void | setId (size_t id) |
| Sets the id of the FieldConfig. | |
| void | setIsArray (bool isArray) |
| Sets the isArray of the FieldConfig. | |
| void | setName (const PString &name) |
| Sets the name of the FieldConfig. | |
| void | setType (const FieldType::FieldType &type) |
| Sets the type of the FieldConfig. | |
| void | setVecChildren (const std::map< PString, FieldConfig > &vecChildren) |
| Sets the vecChildren of the FieldConfig. | |
| virtual | ~FieldConfig () |
| Destructor of class FieldConfig. | |
Protected Member Functions | |
| void | copyFieldConfig (const FieldConfig &other) |
| Copy Function of class FieldConfig. | |
Private Member Functions | |
| void | initialisationFieldConfig () |
| Initialisation Function of class FieldConfig. | |
Private Attributes | |
| size_t | p_id |
| Id of the field. | |
| bool | p_isArray |
| True if the Field contains an array of value, false if not. | |
| PString | p_name |
| Name of the Field. | |
| FieldType::FieldType | p_type |
| Type of the Field. | |
| std::map< PString, FieldConfig > | p_vecChildren |
| Vector of children of the FieldConfig. | |
Configuration to be used to create a field from a yml file.
Definition at line 79 of file AbtractField.h.
| FieldConfig::FieldConfig | ( | ) |
Constructor of class FieldConfig.
Definition at line 278 of file AbtractField.cpp.
References initialisationFieldConfig().
Referenced by copyFieldConfig(), FieldConfig(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| FieldConfig::FieldConfig | ( | const FieldConfig & | other | ) |
Copy Constructor of class FieldConfig.
| other | : FieldConfig we want ot copy |
Definition at line 285 of file AbtractField.cpp.
References copyFieldConfig(), and FieldConfig().
Here is the call graph for this function:
|
virtual |
|
protected |
Copy Function of class FieldConfig.
| other | : FieldConfig we want ot copy |
Definition at line 411 of file AbtractField.cpp.
References FieldConfig(), p_id, p_isArray, p_name, p_type, and p_vecChildren.
Referenced by FieldConfig(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| size_t & FieldConfig::getId | ( | ) |
Gets the id of the FieldConfig.
Definition at line 362 of file AbtractField.cpp.
References p_id.
| size_t FieldConfig::getId | ( | ) | const |
Gets the id of the FieldConfig.
Definition at line 355 of file AbtractField.cpp.
References p_id.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), FieldParser::addParseFieldValue(), and FieldParser::addSubMessage().
Here is the caller graph for this function:| bool & FieldConfig::getIsArray | ( | ) |
Gets the isArray of the FieldConfig.
Definition at line 390 of file AbtractField.cpp.
References p_isArray.
| bool FieldConfig::getIsArray | ( | ) | const |
Gets the isArray of the FieldConfig.
Definition at line 383 of file AbtractField.cpp.
References p_isArray.
Referenced by FieldParser::addParseFieldArray().
Here is the caller graph for this function:| PString & FieldConfig::getName | ( | ) |
Gets the name of the FieldConfig.
Definition at line 348 of file AbtractField.cpp.
References p_name.
| const PString & FieldConfig::getName | ( | ) | const |
Gets the name of the FieldConfig.
Definition at line 341 of file AbtractField.cpp.
References p_name.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), FieldParser::addParseFieldValue(), FieldParser::addSubMessage(), and FieldParser::checkInputType().
Here is the caller graph for this function:| FieldType::FieldType & FieldConfig::getType | ( | ) |
Gets the type of the FieldConfig.
Definition at line 376 of file AbtractField.cpp.
References p_type.
| const FieldType::FieldType & FieldConfig::getType | ( | ) | const |
Gets the type of the FieldConfig.
Definition at line 369 of file AbtractField.cpp.
References p_type.
Referenced by FieldParser::checkInputType().
Here is the caller graph for this function:| std::map< PString, FieldConfig > & FieldConfig::getVecChildren | ( | ) |
Gets the vecChildren of the FieldConfig.
Definition at line 404 of file AbtractField.cpp.
References p_vecChildren.
| const std::map< PString, FieldConfig > & FieldConfig::getVecChildren | ( | ) | const |
Gets the vecChildren of the FieldConfig.
Definition at line 397 of file AbtractField.cpp.
References p_vecChildren.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), FieldParser::addParseFieldValue(), FieldParser::addSubMessage(), FieldParser::addSubMessage(), and phoenix_parseFieldConfig().
Here is the caller graph for this function:
|
private |
Initialisation Function of class FieldConfig.
Definition at line 420 of file AbtractField.cpp.
References p_id, p_isArray, and p_name.
Referenced by FieldConfig().
Here is the caller graph for this function:| FieldConfig & FieldConfig::operator= | ( | const FieldConfig & | other | ) |
Operator = of class FieldConfig.
| other | : FieldConfig we want ot copy |
Definition at line 298 of file AbtractField.cpp.
References copyFieldConfig(), and FieldConfig().
Here is the call graph for this function:| void FieldConfig::setId | ( | size_t | id | ) |
Sets the id of the FieldConfig.
| id | : id of the FieldConfig |
Definition at line 313 of file AbtractField.cpp.
References p_id.
Referenced by phoenix_createField().
Here is the caller graph for this function:| void FieldConfig::setIsArray | ( | bool | isArray | ) |
Sets the isArray of the FieldConfig.
| isArray | : isArray of the FieldConfig |
Definition at line 327 of file AbtractField.cpp.
References p_isArray.
Referenced by phoenix_createField().
Here is the caller graph for this function:| void FieldConfig::setName | ( | const PString & | name | ) |
Sets the name of the FieldConfig.
| name | : name of the FieldConfig |
Definition at line 306 of file AbtractField.cpp.
References p_name.
Referenced by phoenix_createField().
Here is the caller graph for this function:| void FieldConfig::setType | ( | const FieldType::FieldType & | type | ) |
Sets the type of the FieldConfig.
| type | : type of the FieldConfig |
Definition at line 320 of file AbtractField.cpp.
References p_type.
Referenced by phoenix_createField().
Here is the caller graph for this function:| void FieldConfig::setVecChildren | ( | const std::map< PString, FieldConfig > & | vecChildren | ) |
Sets the vecChildren of the FieldConfig.
| vecChildren | : vecChildren of the FieldConfig |
Definition at line 334 of file AbtractField.cpp.
References p_vecChildren.
|
private |
Id of the field.
Definition at line 107 of file AbtractField.h.
Referenced by copyFieldConfig(), getId(), getId(), initialisationFieldConfig(), and setId().
|
private |
True if the Field contains an array of value, false if not.
Definition at line 111 of file AbtractField.h.
Referenced by copyFieldConfig(), getIsArray(), getIsArray(), initialisationFieldConfig(), and setIsArray().
|
private |
Name of the Field.
Definition at line 105 of file AbtractField.h.
Referenced by copyFieldConfig(), getName(), getName(), initialisationFieldConfig(), and setName().
|
private |
Type of the Field.
Definition at line 109 of file AbtractField.h.
Referenced by copyFieldConfig(), getType(), getType(), and setType().
|
private |
Vector of children of the FieldConfig.
Definition at line 113 of file AbtractField.h.
Referenced by copyFieldConfig(), getVecChildren(), getVecChildren(), and setVecChildren().