![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
Basic Data exchanged in the swarm. More...
#include <Representation.h>
Public Member Functions | |
| Data () | |
| Constructor of class Data. | |
| Data (const Data &other) | |
| Copy Constructor of class Data. | |
| PString & | getDescription () |
| Gets the description of the Data. | |
| const PString & | getDescription () const |
| Gets the description of the Data. | |
| PString & | getName () |
| Gets the name of the Data. | |
| const PString & | getName () const |
| Gets the name of the Data. | |
| PString & | getType () |
| Gets the type of the Data. | |
| const PString & | getType () const |
| Gets the type of the Data. | |
| DataStreamMsg & | getValue () |
| Gets the value of the Data. | |
| const DataStreamMsg & | getValue () const |
| Gets the value of the Data. | |
| Data & | operator= (const Data &other) |
| Operator = of class Data. | |
| template<typename Stream, DataStreamMode::DataStreamMode Mode> | |
| bool | readWriteStream (Stream &ds) |
| Load the current Data with a stream. | |
| void | setDescription (const PString &description) |
| Sets the description of the Data. | |
| void | setName (const PString &name) |
| Sets the name of the Data. | |
| void | setType (const PString &type) |
| Sets the type of the Data. | |
| void | setValue (const DataStreamMsg &value) |
| Sets the value of the Data. | |
| virtual | ~Data () |
| Destructor of class Data. | |
Protected Member Functions | |
| void | copyData (const Data &other) |
| Copy Function of class Data. | |
Private Member Functions | |
| void | initialisationData () |
| Initialisation Function of class Data. | |
Private Attributes | |
| PString | p_description |
| Description of the Data. | |
| PString | p_name |
| Name of the Data. | |
| PString | p_type |
| Type of the Data. | |
| DataStreamMsg | p_value |
| Value of the Data. | |
Basic Data exchanged in the swarm.
Definition at line 21 of file Representation.h.
| Data::Data | ( | ) |
Constructor of class Data.
Definition at line 36 of file Representation.cpp.
References initialisationData().
Referenced by copyData(), Data(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
| Data::Data | ( | const Data & | other | ) |
Copy Constructor of class Data.
| other | : Data we want ot copy |
Definition at line 48 of file Representation.cpp.
References copyData(), and Data().
Here is the call graph for this function:
|
protected |
| other | : Data we want ot copy |
Definition at line 148 of file Representation.cpp.
References Data(), p_description, p_name, p_type, and p_value.
Referenced by Data(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| PString & Data::getDescription | ( | ) |
Gets the description of the Data.
Definition at line 113 of file Representation.cpp.
References p_description.
| const PString & Data::getDescription | ( | ) | const |
Gets the description of the Data.
Definition at line 106 of file Representation.cpp.
References p_description.
Referenced by CheckStream< Data >::check_stream().
Here is the caller graph for this function:| PString & Data::getName | ( | ) |
| const PString & Data::getName | ( | ) | const |
Gets the name of the Data.
Definition at line 92 of file Representation.cpp.
References p_name.
Referenced by CheckStream< Data >::check_stream().
Here is the caller graph for this function:| PString & Data::getType | ( | ) |
| const PString & Data::getType | ( | ) | const |
Gets the type of the Data.
Definition at line 120 of file Representation.cpp.
References p_type.
Referenced by CheckStream< Data >::check_stream(), BaseDaemon::getDataFunction(), phoenix_getValueFromData(), BaseDaemon::processConfirmedMessage(), BaseDaemon::processData(), and Daemon< _TBackend >::processInputMessage().
Here is the caller graph for this function:| DataStreamMsg & Data::getValue | ( | ) |
| const DataStreamMsg & Data::getValue | ( | ) | const |
Gets the value of the Data.
Definition at line 134 of file Representation.cpp.
References p_value.
Referenced by FunctionCall< _Callable >::call(), CheckStream< Data >::check_stream(), phoenix_createData(), and phoenix_getValueFromData().
Here is the caller graph for this function:
|
private |
Initialisation Function of class Data.
Definition at line 156 of file Representation.cpp.
References p_description, p_name, and p_type.
Referenced by Data().
Here is the caller graph for this function:Operator = of class Data.
| other | : Data we want ot copy |
Definition at line 56 of file Representation.cpp.
References copyData(), and Data().
Here is the call graph for this function:
|
inline |
Load the current Data with a stream.
| [out] | ds | : stream to be used |
Definition at line 45 of file Representation.h.
References p_description, p_name, p_type, and p_value.
Referenced by DataStream< Stream, Mode, Data >::data_stream().
Here is the caller graph for this function:| void Data::setDescription | ( | const PString & | description | ) |
Sets the description of the Data.
| description | : description of the Data |
Definition at line 71 of file Representation.cpp.
References p_description.
| void Data::setName | ( | const PString & | name | ) |
| void Data::setType | ( | const PString & | type | ) |
Sets the type of the Data.
| type | : type of the Data |
Definition at line 78 of file Representation.cpp.
References p_type.
Referenced by phoenix_createData(), and phoenix_function_call().
Here is the caller graph for this function:| void Data::setValue | ( | const DataStreamMsg & | value | ) |
|
private |
Description of the Data.
Definition at line 61 of file Representation.h.
Referenced by copyData(), getDescription(), getDescription(), initialisationData(), readWriteStream(), and setDescription().
|
private |
Name of the Data.
Definition at line 59 of file Representation.h.
Referenced by copyData(), getName(), getName(), initialisationData(), readWriteStream(), and setName().
|
private |
Type of the Data.
Definition at line 63 of file Representation.h.
Referenced by copyData(), getType(), getType(), initialisationData(), readWriteStream(), and setType().
|
private |
Value of the Data.
Definition at line 65 of file Representation.h.
Referenced by copyData(), getValue(), getValue(), readWriteStream(), and setValue().