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