PhoenixSwarm  3.5.0
Library to ease communication between daemons
Loading...
Searching...
No Matches
DataFunctionCall.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 __DATA_FUNCTION_H__
8#define __DATA_FUNCTION_H__
9
11
13template<typename _Data>
15 public:
16 DataFunctionCall(PUncastableBool (*function)(const _Data &), const PString & name);
17 virtual ~DataFunctionCall();
18
19 virtual bool call(PLog & log, const Data & data);
20
21 protected:
23
25 PUncastableBool (*p_function)(const _Data &);
26};
27
29
30
31#endif
32
AbstractDataFunction(const PString &name)
Default constructor of AbstractDataFunction.
PUncastableBool(* p_function)(const _Data &)
Callable function of the DataFunctionCall.
virtual ~DataFunctionCall()
Destructor of DataFunctionCall.
virtual bool call(PLog &log, const Data &data)
Call the function with parameter.
void initialisationDataFunctionCall()
Initialisation function of the class DataFunctionCall.
DataFunctionCall(PUncastableBool(*function)(const _Data &), const PString &name)
Default constructor of DataFunctionCall.
Basic Data exchanged in the swarm.