PhoenixSwarm
5.2.0
Library to ease communication between daemons
Toggle main menu visibility
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
13
template
<
typename
_Callable>
14
class
Swarm::FunctionCall
:
public
Swarm::AbstractFunction
{
15
public
:
16
FunctionCall
(_Callable && function,
const
PString & name);
17
virtual
~FunctionCall
();
18
19
virtual
bool
call
(PLog & log,
Swarm::Data
& outputResult,
const
Swarm::Data
& parameter);
20
21
private
:
22
void
initialisationFunctionCall
();
23
25
_Callable &&
p_function
;
26
};
27
28
#include "
FunctionCall_impl.h
"
29
30
31
#endif
32
AbstractFunction.h
FunctionCall_impl.h
Swarm::AbstractFunction
Abstract function definition which will be callable in Daemon.
Definition
AbstractFunction.h:15
Swarm::Data
Basic Data exchanged in the swarm.
Definition
Representation.h:22
Swarm::FunctionCall
Function which can be called in a Daemon.
Definition
FunctionCall.h:14
Swarm::FunctionCall::call
virtual bool call(PLog &log, Swarm::Data &outputResult, const Swarm::Data ¶meter)
Call the function with parameter.
Definition
FunctionCall_impl.h:41
Swarm::FunctionCall::FunctionCall
FunctionCall(_Callable &&function, const PString &name)
Default constructor of FunctionCall.
Definition
FunctionCall_impl.h:21
Swarm::FunctionCall::~FunctionCall
virtual ~FunctionCall()
Destructor of FunctionCall.
Definition
FunctionCall_impl.h:30
Swarm::FunctionCall::p_function
_Callable && p_function
Callable function of the FunctionCall.
Definition
FunctionCall.h:25
Swarm::FunctionCall::initialisationFunctionCall
void initialisationFunctionCall()
Initialisation function of the class FunctionCall.
Definition
FunctionCall_impl.h:47
src
Function
FunctionCall.h
Generated by
1.17.0