18 #ifndef sitkFunctionCommand_h
19 #define sitkFunctionCommand_h
45 virtual void Execute(
void);
53 m_Function = nsstd::bind(pMemberFunction,
object);
57 void SetCallbackFunction (
void(* pFunction )() );
64 void SetCallbackFunction(
void(* pFunction )(
void *),
void *clientData );
nsstd::function< void()> FunctionObjectType
A Command class which allows setting an external function, or member function.
FunctionObjectType m_Function
An implementation of the Command design pattern for callback.
void SetCallbackFunction(T *object, void(T::*pMemberFunction)())
#define SITKCommon_EXPORT