![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
Function which can be called in a Daemon. More...
#include <DataFunctionClassCall.h>
Inheritance diagram for DataFunctionClassCall< _Class, _Data >:
Collaboration diagram for DataFunctionClassCall< _Class, _Data >:Public Member Functions | |
| virtual bool | call (PLog &log, const Data &data) |
| Call the function with parameter. | |
| DataFunctionClassCall (PUncastableBool(*function)(_Class &, const _Data &), _Class &persistentData, const PString &name) | |
| Default constructor of DataFunctionClassCall. | |
| const PString & | getName () const |
| Name of the function. | |
| const PString & | getPrototype () const |
| Get the prototype of the current function. | |
| void | setName (const PString &name) |
| Set the name of the function. | |
| void | setPrototype (const PString &prototype) |
| Set the prototype of the current function. | |
| virtual | ~DataFunctionClassCall () |
| Destructor of DataFunctionClassCall. | |
Protected Member Functions | |
| void | initialisationDataFunctionClassCall () |
| Initialisation function of the class DataFunctionClassCall. | |
Protected Attributes | |
| PUncastableBool(* | p_function )(_Class &, const _Data &) |
| Callable function of the DataFunctionClassCall. | |
| _Class & | p_persistentData |
| Persistent data of the function. | |
Private Member Functions | |
| void | initialisationAbstractDataFunction (const PString &name) |
| Initialisation function of the class AbstractDataFunction. | |
Private Attributes | |
| PString | p_name |
| Name of the function. | |
| PString | p_prototype |
| Prototype of the function. | |
Function which can be called in a Daemon.
Definition at line 14 of file DataFunctionClassCall.h.
| DataFunctionClassCall< _Class, _Data >::DataFunctionClassCall | ( | PUncastableBool(* | function )(_Class &, const _Data &), |
| _Class & | persistentData, | ||
| const PString & | name ) |
Default constructor of DataFunctionClassCall.
| function | : function to be called on a given data |
| persistentData | : persistent data of the function to be called |
| name | : name of the function |
Definition at line 18 of file DataFunctionClassCall_impl.h.
References AbstractDataFunction::AbstractDataFunction(), initialisationDataFunctionClassCall(), p_function, and p_persistentData.
Here is the call graph for this function:
|
virtual |
Destructor of DataFunctionClassCall.
Definition at line 29 of file DataFunctionClassCall_impl.h.
|
virtual |
Call the function with parameter.
| [out] | log | : logger |
| data | : data given to the function |
Implements AbstractDataFunction.
Definition at line 39 of file DataFunctionClassCall_impl.h.
References AbstractDataFunction::getName(), AbstractDataFunction::getPrototype(), p_function, p_persistentData, and phoenix_getValueFromData().
Here is the call graph for this function:
|
inherited |
Name of the function.
Definition at line 34 of file AbstractDataFunction.cpp.
References p_name.
Referenced by DataFunctionCall< _Data >::call(), and DataFunctionClassCall< _Class, _Data >::call().
Here is the caller graph for this function:
|
inherited |
Get the prototype of the current function.
Definition at line 48 of file AbstractDataFunction.cpp.
References p_prototype.
Referenced by DataFunctionCall< _Data >::call(), and DataFunctionClassCall< _Class, _Data >::call().
Here is the caller graph for this function:
|
privateinherited |
Initialisation function of the class AbstractDataFunction.
| name | : name of the function |
Definition at line 55 of file AbstractDataFunction.cpp.
References p_name, and p_prototype.
Referenced by AbstractDataFunction().
Here is the caller graph for this function:
|
protected |
Initialisation function of the class DataFunctionClassCall.
Definition at line 52 of file DataFunctionClassCall_impl.h.
Referenced by DataFunctionClassCall().
Here is the caller graph for this function:
|
inherited |
Set the name of the function.
| name | : name of the function |
Definition at line 27 of file AbstractDataFunction.cpp.
References p_name.
|
inherited |
Set the prototype of the current function.
| prototype | : prototype of the current function |
Definition at line 41 of file AbstractDataFunction.cpp.
References p_prototype.
Referenced by DataFunctionCall< _Data >::DataFunctionCall().
Here is the caller graph for this function:
|
protected |
Callable function of the DataFunctionClassCall.
Definition at line 27 of file DataFunctionClassCall.h.
Referenced by call(), and DataFunctionClassCall().
|
privateinherited |
Name of the function.
Definition at line 32 of file AbstractDataFunction.h.
Referenced by getName(), initialisationAbstractDataFunction(), and setName().
|
protected |
Persistent data of the function.
Definition at line 25 of file DataFunctionClassCall.h.
Referenced by call(), and DataFunctionClassCall().
|
privateinherited |
Prototype of the function.
Definition at line 34 of file AbstractDataFunction.h.
Referenced by getPrototype(), initialisationAbstractDataFunction(), and setPrototype().