![]() |
|
PhoenixSwarm
3.5.0
Library to ease communication between daemons
|
Function which can be called in a Daemon. More...
#include <FunctionCall.h>
Inheritance diagram for FunctionCall< _Callable >:
Collaboration diagram for FunctionCall< _Callable >:Public Member Functions | |
| virtual bool | call (PLog &log, Data &outputResult, const Data ¶meter) |
| Call the function with parameter. | |
| FunctionCall (_Callable &&function, const PString &name) | |
| Default constructor of FunctionCall. | |
| 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 | ~FunctionCall () |
| Destructor of FunctionCall. | |
Private Member Functions | |
| void | initialisationAbstractFunction (const PString &name) |
| Initialisation function of the class AbstractFunction. | |
| void | initialisationFunctionCall () |
| Initialisation function of the class FunctionCall. | |
Private Attributes | |
| _Callable && | p_function |
| Callable function of the FunctionCall. | |
| 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 FunctionCall.h.
| FunctionCall< _Callable >::FunctionCall | ( | _Callable && | function, |
| const PString & | name ) |
Default constructor of FunctionCall.
| function | : function to be called |
| name | : name of the function |
Definition at line 19 of file FunctionCall_impl.h.
References AbstractFunction::AbstractFunction(), initialisationFunctionCall(), p_function, and AbstractFunction::setPrototype().
Here is the call graph for this function:
|
virtual |
|
virtual |
Call the function with parameter.
| [out] | log | : logger |
| [out] | outputResult | : result of the function call |
| parameter | : set of parameters given to the function |
Implements AbstractFunction.
Definition at line 39 of file FunctionCall_impl.h.
References Data::getValue(), p_function, and phoenix_function_call().
Here is the call graph for this function:
|
inherited |
Name of the function.
Definition at line 34 of file AbstractFunction.cpp.
References p_name.
|
inherited |
Get the prototype of the current function.
Definition at line 48 of file AbstractFunction.cpp.
References p_prototype.
|
privateinherited |
Initialisation function of the class AbstractFunction.
| name | : name of the function |
Definition at line 55 of file AbstractFunction.cpp.
References p_name.
Referenced by AbstractFunction().
Here is the caller graph for this function:
|
private |
Initialisation function of the class FunctionCall.
Definition at line 45 of file FunctionCall_impl.h.
Referenced by FunctionCall().
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 AbstractFunction.cpp.
References p_name.
|
inherited |
Set the prototype of the current function.
| prototype | : prototype of the current function |
Definition at line 41 of file AbstractFunction.cpp.
References p_prototype.
Referenced by FunctionCall< _Callable >::FunctionCall().
Here is the caller graph for this function:
|
private |
Callable function of the FunctionCall.
Definition at line 25 of file FunctionCall.h.
Referenced by call(), and FunctionCall().
|
privateinherited |
Name of the function.
Definition at line 31 of file AbstractFunction.h.
Referenced by getName(), initialisationAbstractFunction(), and setName().
|
privateinherited |
Prototype of the function.
Definition at line 33 of file AbstractFunction.h.
Referenced by getPrototype(), and setPrototype().