17 #ifndef BERRYISAFERUNNABLE_H_
18 #define BERRYISAFERUNNABLE_H_
56 virtual
void HandleException(const ctkException& exception) = 0;
67 virtual
void Run() = 0;
73 typedef void(R::*RunCallback)();
74 typedef void(R::*HandleExcCallback)(
const std::exception&);
77 m_Runnable(runnable), m_RunFunc(func), m_HandleExcFunc(handleFunc)
83 m_Runnable->*m_RunFunc();
86 void HandleException(
const ctkException& exception)
override
89 m_Runnable->*m_HandleExcFunc(exception);
95 RunCallback m_RunFunc;
96 HandleExcCallback m_HandleExcFunc;
Light weight base class for most BlueBerry classes.
#define org_blueberry_core_runtime_EXPORT
#define berryObjectMacro(...)