PhoenixSwarm  3.5.0
Library to ease communication between daemons
Loading...
Searching...
No Matches
FunctionCall.h
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7#ifndef __FUNCTION_H__
8#define __FUNCTION_H__
9
10#include "AbstractFunction.h"
11
13template<typename _Callable>
15 public:
16 FunctionCall(_Callable && function, const PString & name);
17 virtual ~FunctionCall();
18
19 virtual bool call(PLog & log, Data & outputResult, const Data & parameter);
20
21 private:
23
25 _Callable && p_function;
26};
27
28#include "FunctionCall_impl.h"
29
30
31#endif
32
AbstractFunction(const PString &name)
Default constructor of AbstractFunction.
Basic Data exchanged in the swarm.
virtual ~FunctionCall()
Destructor of FunctionCall.
FunctionCall(_Callable &&function, const PString &name)
Default constructor of FunctionCall.
virtual bool call(PLog &log, Data &outputResult, const Data &parameter)
Call the function with parameter.
void initialisationFunctionCall()
Initialisation function of the class FunctionCall.
_Callable && p_function
Callable function of the FunctionCall.