![]() |
|
PhoenixSwarm
5.1.1
Library to ease communication between daemons
|
Function which can be called in a Daemon. More...
#include <DataFunctionCall.h>
Inheritance diagram for Swarm::DataFunctionCall< _Data >:
Collaboration diagram for Swarm::DataFunctionCall< _Data >:Public Member Functions | |
| virtual bool | call (PLog &log, const Swarm::Data &data) |
| Call the function with parameter. | |
| DataFunctionCall (PUncastableBool(*function)(const _Data &), const PString &name) | |
| Default constructor of DataFunctionCall. | |
| 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 | ~DataFunctionCall () |
| Destructor of DataFunctionCall. | |
Protected Member Functions | |
| void | initialisationDataFunctionCall () |
| Initialisation function of the class DataFunctionCall. | |
Protected Attributes | |
| PUncastableBool(* | p_function )(const _Data &) |
| Callable function of the DataFunctionCall. | |
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 DataFunctionCall.h.
| DataFunctionCall::DataFunctionCall | ( | PUncastableBool(* | function )(const _Data &), |
| const PString & | name ) |
Default constructor of DataFunctionCall.
| function | : function to be called on a given data |
| name | : name of the function |
Definition at line 21 of file DataFunctionCall_impl.h.
References Swarm::AbstractDataFunction::AbstractDataFunction(), initialisationDataFunctionCall(), p_function, and Swarm::AbstractDataFunction::setPrototype().
Here is the call graph for this function:
|
virtual |
|
virtual |
Call the function with parameter.
| [out] | log | : logger |
| data | : data given to the function |
Implements Swarm::AbstractDataFunction.
Definition at line 41 of file DataFunctionCall_impl.h.
References Swarm::AbstractDataFunction::getName(), Swarm::AbstractDataFunction::getPrototype(), p_function, and phoenix_getValueFromData().
Here is the call graph for this function:
|
inherited |
Name of the function.
Definition at line 33 of file AbstractDataFunction.cpp.
References p_name.
Referenced by Swarm::DataFunctionCall< _Data >::call(), and Swarm::DataFunctionClassCall< _Class, _Data >::call().
Here is the caller graph for this function:
|
inherited |
Get the prototype of the current function.
Definition at line 47 of file AbstractDataFunction.cpp.
References p_prototype.
Referenced by Swarm::DataFunctionCall< _Data >::call(), and Swarm::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 54 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 DataFunctionCall.
Definition at line 54 of file DataFunctionCall_impl.h.
Referenced by DataFunctionCall().
Here is the caller graph for this function:
|
inherited |
Set the name of the function.
| name | : name of the function |
Definition at line 26 of file AbstractDataFunction.cpp.
References p_name.
|
inherited |
Set the prototype of the current function.
| prototype | : prototype of the current function |
Definition at line 40 of file AbstractDataFunction.cpp.
References p_prototype.
Referenced by Swarm::DataFunctionCall< _Data >::DataFunctionCall().
Here is the caller graph for this function:
|
protected |
Callable function of the DataFunctionCall.
Definition at line 25 of file DataFunctionCall.h.
Referenced by call(), and DataFunctionCall().
|
privateinherited |
Name of the function.
Definition at line 33 of file AbstractDataFunction.h.
Referenced by getName(), initialisationAbstractDataFunction(), and setName().
|
privateinherited |
Prototype of the function.
Definition at line 35 of file AbstractDataFunction.h.
Referenced by getPrototype(), initialisationAbstractDataFunction(), and setPrototype().