![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
Basic function which can be called from an other Daemon. More...
#include <Representation.h>
Collaboration diagram for Function:Public Member Functions | |
| Function () | |
| Constructor of class Function. | |
| Function (const Function &other) | |
| Copy Constructor of class Function. | |
| PString & | getDescription () |
| Gets the description of the Function. | |
| const PString & | getDescription () const |
| Gets the description of the Function. | |
| PString & | getName () |
| Gets the name of the Function. | |
| const PString & | getName () const |
| Gets the name of the Function. | |
| Data & | getReturnValue () |
| Gets the returnValue of the Function. | |
| const Data & | getReturnValue () const |
| Gets the returnValue of the Function. | |
| std::vector< Data > & | getVecParam () |
| Gets the vecParam of the Function. | |
| const std::vector< Data > & | getVecParam () const |
| Gets the vecParam of the Function. | |
| Function & | operator= (const Function &other) |
| Operator = of class Function. | |
| template<typename Stream, DataStreamMode::DataStreamMode Mode> | |
| bool | readWriteStream (Stream &ds) |
| Load the current Function with a stream. | |
| void | setDescription (const PString &description) |
| Sets the description of the Function. | |
| void | setName (const PString &name) |
| Sets the name of the Function. | |
| void | setReturnValue (const Data &returnValue) |
| Sets the returnValue of the Function. | |
| void | setVecParam (const std::vector< Data > &vecParam) |
| Sets the vecParam of the Function. | |
| virtual | ~Function () |
| Destructor of class Function. | |
Protected Member Functions | |
| void | copyFunction (const Function &other) |
| Copy Function of class Function. | |
Private Member Functions | |
| void | initialisationFunction () |
| Initialisation Function of class Function. | |
Private Attributes | |
| PString | p_description |
| Description of the Function. | |
| PString | p_name |
| Name of the Function. | |
| Data | p_returnValue |
| Return value of the Function. | |
| std::vector< Data > | p_vecParam |
| Vector of parameters of the Function. | |
Basic function which can be called from an other Daemon.
Definition at line 94 of file Representation.h.
| Function::Function | ( | ) |
Constructor of class Function.
Definition at line 188 of file Representation.cpp.
References initialisationFunction().
Referenced by copyFunction(), Function(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
| Function::Function | ( | const Function & | other | ) |
Copy Constructor of class Function.
| other | : Function we want ot copy |
Definition at line 200 of file Representation.cpp.
References copyFunction(), and Function().
Here is the call graph for this function:
|
protected |
Copy Function of class Function.
| other | : Function we want ot copy |
Definition at line 300 of file Representation.cpp.
References Function(), p_description, p_name, p_returnValue, and p_vecParam.
Referenced by Function(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| PString & Function::getDescription | ( | ) |
Gets the description of the Function.
Definition at line 265 of file Representation.cpp.
References p_description.
| const PString & Function::getDescription | ( | ) | const |
Gets the description of the Function.
Definition at line 258 of file Representation.cpp.
References p_description.
Referenced by CheckStream< Function >::check_stream().
Here is the caller graph for this function:| PString & Function::getName | ( | ) |
| const PString & Function::getName | ( | ) | const |
Gets the name of the Function.
Definition at line 244 of file Representation.cpp.
References p_name.
Referenced by CheckStream< Function >::check_stream().
Here is the caller graph for this function:| Data & Function::getReturnValue | ( | ) |
Gets the returnValue of the Function.
Definition at line 293 of file Representation.cpp.
References p_returnValue.
| const Data & Function::getReturnValue | ( | ) | const |
Gets the returnValue of the Function.
Definition at line 286 of file Representation.cpp.
References p_returnValue.
Referenced by CheckStream< Function >::check_stream().
Here is the caller graph for this function:| std::vector< Data > & Function::getVecParam | ( | ) |
Gets the vecParam of the Function.
Definition at line 279 of file Representation.cpp.
References p_vecParam.
| const std::vector< Data > & Function::getVecParam | ( | ) | const |
Gets the vecParam of the Function.
Definition at line 272 of file Representation.cpp.
References p_vecParam.
Referenced by CheckStream< Function >::check_stream().
Here is the caller graph for this function:
|
private |
Initialisation Function of class Function.
Definition at line 308 of file Representation.cpp.
References p_description, and p_name.
Referenced by Function().
Here is the caller graph for this function:Operator = of class Function.
| other | : Function we want ot copy |
Definition at line 208 of file Representation.cpp.
References copyFunction(), and Function().
Here is the call graph for this function:
|
inline |
Load the current Function with a stream.
| [out] | ds | : stream to be used |
Definition at line 118 of file Representation.h.
References DataStream< Stream, Mode, Data >::data_stream(), p_description, p_name, p_returnValue, and p_vecParam.
Referenced by DataStream< Stream, Mode, Function >::data_stream().
Here is the call graph for this function:
Here is the caller graph for this function:| void Function::setDescription | ( | const PString & | description | ) |
Sets the description of the Function.
| description | : description of the Function |
Definition at line 223 of file Representation.cpp.
References p_description.
| void Function::setName | ( | const PString & | name | ) |
| void Function::setReturnValue | ( | const Data & | returnValue | ) |
Sets the returnValue of the Function.
| returnValue | : returnValue of the Function |
Definition at line 237 of file Representation.cpp.
References p_returnValue.
| void Function::setVecParam | ( | const std::vector< Data > & | vecParam | ) |
Sets the vecParam of the Function.
| vecParam | : vecParam of the Function |
Definition at line 230 of file Representation.cpp.
References p_vecParam.
|
private |
Description of the Function.
Definition at line 134 of file Representation.h.
Referenced by copyFunction(), getDescription(), getDescription(), initialisationFunction(), readWriteStream(), and setDescription().
|
private |
Name of the Function.
Definition at line 132 of file Representation.h.
Referenced by copyFunction(), getName(), getName(), initialisationFunction(), readWriteStream(), and setName().
|
private |
Return value of the Function.
Definition at line 138 of file Representation.h.
Referenced by copyFunction(), getReturnValue(), getReturnValue(), readWriteStream(), and setReturnValue().
|
private |
Vector of parameters of the Function.
Definition at line 136 of file Representation.h.
Referenced by copyFunction(), getVecParam(), getVecParam(), readWriteStream(), and setVecParam().