7#ifndef __DATA_FUNCTION_CALL_H_IMPL__
8#define __DATA_FUNCTION_CALL_H_IMPL__
10#include "phoenix_type_stream.h"
20template<
typename _Data>
30template<
typename _Data>
40template<
typename _Data>
44 log.getLogDebug() <<
"DataFunctionCall<_Data>::call : function 'bool '"<<
getName()<<
"(const "<<
getPrototype()<<
" &) success" << std::endl;
47 log.getLogError() <<
"DataFunctionCall<_Data>::call : function 'bool '"<<
getName()<<
"(const "<<
getPrototype()<<
" &) failed" << std::endl;
53template<
typename _Data>
const PString & getPrototype() const
Get the prototype of the current function.
void setPrototype(const PString &prototype)
Set the prototype of the current function.
const PString & getName() const
Name of the function.
AbstractDataFunction(const PString &name)
Default constructor of AbstractDataFunction.
DataFunctionCall(PUncastableBool(*function)(const _Data &), const PString &name)
Default constructor of DataFunctionCall.
virtual bool call(PLog &log, const Swarm::Data &data)
Call the function with parameter.
void initialisationDataFunctionCall()
Initialisation function of the class DataFunctionCall.
virtual ~DataFunctionCall()
Destructor of DataFunctionCall.
PUncastableBool(* p_function)(const _Data &)
Callable function of the DataFunctionCall.
Basic Data exchanged in the swarm.
T phoenix_getValueFromData(const Swarm::Data &data)
Get the value in the Data.