![]() |
|
PhoenixProtocolBuffer
1.0.1
Set of tools to decode offset from protocol buffer
|
Abtract field to be read from a protocol buffer message. More...
#include <AbtractField.h>
Public Member Functions | |
| AbtractField () | |
| Constructor of class AbtractField. | |
| AbtractField (const AbtractField &other) | |
| Copy Constructor of class AbtractField. | |
| void **& | getArrayPtr () |
| Gets the arrayPtr of the AbtractField. | |
| void ** | getArrayPtr () const |
| Gets the arrayPtr of the AbtractField. | |
| size_t & | getId () |
| Gets the id of the AbtractField. | |
| size_t | getId () const |
| Gets the id of the AbtractField. | |
| bool & | getIsArray () |
| Gets the isArray of the AbtractField. | |
| bool | getIsArray () const |
| Gets the isArray of the AbtractField. | |
| bool & | getIsOffsetReady () |
| Gets the isOffsetReady of the AbtractField. | |
| bool | getIsOffsetReady () const |
| Gets the isOffsetReady of the AbtractField. | |
| PString & | getName () |
| Gets the name of the AbtractField. | |
| const PString & | getName () const |
| Gets the name of the AbtractField. | |
| size_t *& | getNbElement () |
| Gets the nbElement of the AbtractField. | |
| size_t * | getNbElement () const |
| Gets the nbElement of the AbtractField. | |
| size_t & | getOffset () |
| Gets the offset of the AbtractField. | |
| size_t | getOffset () const |
| Gets the offset of the AbtractField. | |
| FieldType::FieldType & | getType () |
| Gets the type of the AbtractField. | |
| const FieldType::FieldType & | getType () const |
| Gets the type of the AbtractField. | |
| size_t & | getTypeSize () |
| Gets the typeSize of the AbtractField. | |
| size_t | getTypeSize () const |
| Gets the typeSize of the AbtractField. | |
| void *& | getVarPtr () |
| Gets the varPtr of the AbtractField. | |
| void * | getVarPtr () const |
| Gets the varPtr of the AbtractField. | |
| AbtractField & | operator= (const AbtractField &other) |
| Operator = of class AbtractField. | |
| void | setArrayPtr (void **arrayPtr) |
| Sets the arrayPtr of the AbtractField. | |
| void | setId (size_t id) |
| Sets the id of the AbtractField. | |
| void | setIsArray (bool isArray) |
| Sets the isArray of the AbtractField. | |
| void | setIsOffsetReady (bool isOffsetReady) |
| Sets the isOffsetReady of the AbtractField. | |
| void | setName (const PString &name) |
| Sets the name of the AbtractField. | |
| void | setNbElement (size_t *nbElement) |
| Sets the nbElement of the AbtractField. | |
| void | setOffset (size_t offset) |
| Sets the offset of the AbtractField. | |
| void | setType (const FieldType::FieldType &type) |
| Sets the type of the AbtractField. | |
| void | setTypeSize (size_t typeSize) |
| Sets the typeSize of the AbtractField. | |
| void | setVarPtr (void *varPtr) |
| Sets the varPtr of the AbtractField. | |
| virtual | ~AbtractField () |
| Destructor of class AbtractField. | |
Protected Member Functions | |
| void | copyAbtractField (const AbtractField &other) |
| Copy Function of class AbtractField. | |
Private Member Functions | |
| void | initialisationAbtractField () |
| Initialisation Function of class AbtractField. | |
Private Attributes | |
| void ** | p_arrayPtr |
| Pointer to the array to be updated. | |
| size_t | p_id |
| Id of the field. | |
| bool | p_isArray |
| True if the Field contains an array of value, false if not. | |
| bool | p_isOffsetReady |
| True if the offset is computed and can be used on the next read. | |
| PString | p_name |
| Name of the Field. | |
| size_t * | p_nbElement |
| Number of element of the field (NULL for scalar) | |
| size_t | p_offset |
| Offset to get the data on the next read. | |
| FieldType::FieldType | p_type |
| Type of the Field. | |
| size_t | p_typeSize |
| Expected size of the variable type. | |
| void * | p_varPtr |
| Pointer to the variable to be updated. | |
Abtract field to be read from a protocol buffer message.
Definition at line 16 of file AbtractField.h.
| AbtractField::AbtractField | ( | ) |
Constructor of class AbtractField.
Definition at line 13 of file AbtractField.cpp.
References initialisationAbtractField().
Referenced by AbtractField(), copyAbtractField(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| AbtractField::AbtractField | ( | const AbtractField & | other | ) |
Copy Constructor of class AbtractField.
| other | : AbtractField we want ot copy |
Definition at line 20 of file AbtractField.cpp.
References AbtractField(), and copyAbtractField().
Here is the call graph for this function:
|
virtual |
|
protected |
Copy Function of class AbtractField.
| other | : AbtractField we want ot copy |
Definition at line 251 of file AbtractField.cpp.
References AbtractField(), p_arrayPtr, p_id, p_isArray, p_isOffsetReady, p_name, p_nbElement, p_offset, p_type, p_typeSize, and p_varPtr.
Referenced by AbtractField(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| void **& AbtractField::getArrayPtr | ( | ) |
Gets the arrayPtr of the AbtractField.
Definition at line 216 of file AbtractField.cpp.
References p_arrayPtr.
| void ** AbtractField::getArrayPtr | ( | ) | const |
Gets the arrayPtr of the AbtractField.
Definition at line 209 of file AbtractField.cpp.
References p_arrayPtr.
| size_t & AbtractField::getId | ( | ) |
Gets the id of the AbtractField.
Definition at line 132 of file AbtractField.cpp.
References p_id.
| size_t AbtractField::getId | ( | ) | const |
Gets the id of the AbtractField.
Definition at line 125 of file AbtractField.cpp.
References p_id.
| bool & AbtractField::getIsArray | ( | ) |
Gets the isArray of the AbtractField.
Definition at line 174 of file AbtractField.cpp.
References p_isArray.
| bool AbtractField::getIsArray | ( | ) | const |
Gets the isArray of the AbtractField.
Definition at line 167 of file AbtractField.cpp.
References p_isArray.
| bool & AbtractField::getIsOffsetReady | ( | ) |
Gets the isOffsetReady of the AbtractField.
Definition at line 230 of file AbtractField.cpp.
References p_isOffsetReady.
| bool AbtractField::getIsOffsetReady | ( | ) | const |
Gets the isOffsetReady of the AbtractField.
Definition at line 223 of file AbtractField.cpp.
References p_isOffsetReady.
| PString & AbtractField::getName | ( | ) |
Gets the name of the AbtractField.
Definition at line 118 of file AbtractField.cpp.
References p_name.
| const PString & AbtractField::getName | ( | ) | const |
Gets the name of the AbtractField.
Definition at line 111 of file AbtractField.cpp.
References p_name.
| size_t *& AbtractField::getNbElement | ( | ) |
Gets the nbElement of the AbtractField.
Definition at line 188 of file AbtractField.cpp.
References p_nbElement.
| size_t * AbtractField::getNbElement | ( | ) | const |
Gets the nbElement of the AbtractField.
Definition at line 181 of file AbtractField.cpp.
References p_nbElement.
| size_t & AbtractField::getOffset | ( | ) |
Gets the offset of the AbtractField.
Definition at line 244 of file AbtractField.cpp.
References p_offset.
| size_t AbtractField::getOffset | ( | ) | const |
Gets the offset of the AbtractField.
Definition at line 237 of file AbtractField.cpp.
References p_offset.
| FieldType::FieldType & AbtractField::getType | ( | ) |
Gets the type of the AbtractField.
Definition at line 146 of file AbtractField.cpp.
References p_type.
| const FieldType::FieldType & AbtractField::getType | ( | ) | const |
Gets the type of the AbtractField.
Definition at line 139 of file AbtractField.cpp.
References p_type.
| size_t & AbtractField::getTypeSize | ( | ) |
Gets the typeSize of the AbtractField.
Definition at line 160 of file AbtractField.cpp.
References p_typeSize.
| size_t AbtractField::getTypeSize | ( | ) | const |
Gets the typeSize of the AbtractField.
Definition at line 153 of file AbtractField.cpp.
References p_typeSize.
| void *& AbtractField::getVarPtr | ( | ) |
Gets the varPtr of the AbtractField.
Definition at line 202 of file AbtractField.cpp.
References p_varPtr.
| void * AbtractField::getVarPtr | ( | ) | const |
Gets the varPtr of the AbtractField.
Definition at line 195 of file AbtractField.cpp.
References p_varPtr.
|
private |
Initialisation Function of class AbtractField.
Definition at line 265 of file AbtractField.cpp.
References p_arrayPtr, p_id, p_isArray, p_isOffsetReady, p_name, p_nbElement, p_offset, p_typeSize, and p_varPtr.
Referenced by AbtractField().
Here is the caller graph for this function:| AbtractField & AbtractField::operator= | ( | const AbtractField & | other | ) |
Operator = of class AbtractField.
| other | : AbtractField we want ot copy |
Definition at line 33 of file AbtractField.cpp.
References AbtractField(), and copyAbtractField().
Here is the call graph for this function:| void AbtractField::setArrayPtr | ( | void ** | arrayPtr | ) |
Sets the arrayPtr of the AbtractField.
| arrayPtr | : arrayPtr of the AbtractField |
Definition at line 90 of file AbtractField.cpp.
References p_arrayPtr.
Referenced by FieldParser::addParseFieldArray().
Here is the caller graph for this function:| void AbtractField::setId | ( | size_t | id | ) |
Sets the id of the AbtractField.
| id | : id of the AbtractField |
Definition at line 48 of file AbtractField.cpp.
References p_id.
| void AbtractField::setIsArray | ( | bool | isArray | ) |
Sets the isArray of the AbtractField.
| isArray | : isArray of the AbtractField |
Definition at line 69 of file AbtractField.cpp.
References p_isArray.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), and FieldParser::addParseFieldValue().
Here is the caller graph for this function:| void AbtractField::setIsOffsetReady | ( | bool | isOffsetReady | ) |
Sets the isOffsetReady of the AbtractField.
| isOffsetReady | : isOffsetReady of the AbtractField |
Definition at line 97 of file AbtractField.cpp.
References p_isOffsetReady.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), and FieldParser::addParseFieldValue().
Here is the caller graph for this function:| void AbtractField::setName | ( | const PString & | name | ) |
Sets the name of the AbtractField.
| name | : name of the AbtractField |
Definition at line 41 of file AbtractField.cpp.
References p_name.
| void AbtractField::setNbElement | ( | size_t * | nbElement | ) |
Sets the nbElement of the AbtractField.
| nbElement | : nbElement of the AbtractField |
Definition at line 76 of file AbtractField.cpp.
References p_nbElement.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), and FieldParser::addParseFieldValue().
Here is the caller graph for this function:| void AbtractField::setOffset | ( | size_t | offset | ) |
Sets the offset of the AbtractField.
| offset | : offset of the AbtractField |
Definition at line 104 of file AbtractField.cpp.
References p_offset.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), and FieldParser::addParseFieldValue().
Here is the caller graph for this function:| void AbtractField::setType | ( | const FieldType::FieldType & | type | ) |
Sets the type of the AbtractField.
| type | : type of the AbtractField |
Definition at line 55 of file AbtractField.cpp.
References p_type.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), FieldParser::addParseFieldValue(), and FieldParser::addSubMessage().
Here is the caller graph for this function:| void AbtractField::setTypeSize | ( | size_t | typeSize | ) |
Sets the typeSize of the AbtractField.
| typeSize | : typeSize of the AbtractField |
Definition at line 62 of file AbtractField.cpp.
References p_typeSize.
Referenced by FieldParser::addParseFieldArray(), FieldParser::addParseFieldEnum(), and FieldParser::addParseFieldValue().
Here is the caller graph for this function:| void AbtractField::setVarPtr | ( | void * | varPtr | ) |
Sets the varPtr of the AbtractField.
| varPtr | : varPtr of the AbtractField |
Definition at line 83 of file AbtractField.cpp.
References p_varPtr.
Referenced by FieldParser::addParseFieldEnum(), and FieldParser::addParseFieldValue().
Here is the caller graph for this function:
|
private |
Pointer to the array to be updated.
Definition at line 71 of file AbtractField.h.
Referenced by copyAbtractField(), getArrayPtr(), getArrayPtr(), initialisationAbtractField(), and setArrayPtr().
|
private |
Id of the field.
Definition at line 59 of file AbtractField.h.
Referenced by copyAbtractField(), getId(), getId(), initialisationAbtractField(), and setId().
|
private |
True if the Field contains an array of value, false if not.
Definition at line 65 of file AbtractField.h.
Referenced by copyAbtractField(), getIsArray(), getIsArray(), initialisationAbtractField(), and setIsArray().
|
private |
True if the offset is computed and can be used on the next read.
Definition at line 73 of file AbtractField.h.
Referenced by copyAbtractField(), getIsOffsetReady(), getIsOffsetReady(), initialisationAbtractField(), and setIsOffsetReady().
|
private |
Name of the Field.
Definition at line 57 of file AbtractField.h.
Referenced by copyAbtractField(), getName(), getName(), initialisationAbtractField(), and setName().
|
private |
Number of element of the field (NULL for scalar)
Definition at line 67 of file AbtractField.h.
Referenced by copyAbtractField(), getNbElement(), getNbElement(), initialisationAbtractField(), and setNbElement().
|
private |
Offset to get the data on the next read.
Definition at line 75 of file AbtractField.h.
Referenced by copyAbtractField(), getOffset(), getOffset(), initialisationAbtractField(), and setOffset().
|
private |
Type of the Field.
Definition at line 61 of file AbtractField.h.
Referenced by copyAbtractField(), getType(), getType(), and setType().
|
private |
Expected size of the variable type.
Definition at line 63 of file AbtractField.h.
Referenced by copyAbtractField(), getTypeSize(), getTypeSize(), initialisationAbtractField(), and setTypeSize().
|
private |
Pointer to the variable to be updated.
Definition at line 69 of file AbtractField.h.
Referenced by copyAbtractField(), getVarPtr(), getVarPtr(), initialisationAbtractField(), and setVarPtr().