9#ifndef WB_W_B_FUNCTOR_H
10#define WB_W_B_FUNCTOR_H
21#pragma clang diagnostic push
22#pragma clang diagnostic ignored "-Wweak-vtables"
23#pragma clang diagnostic ignored "-Wpadded"
32#define WB_BIND( f ) createWBFunctor(this, &f)
33#define WB_TYPE_BIND( t, f ) createWBFunctor(this, &f, t)
176#pragma clang diagnostic pop
WBFunctorBase * createWBFunctor(C *obj, void(C::*f)(std::string, WBMsg *))
Base class for WBFunctor.
virtual void call(guWhiteboard::wb_types t, gu_simple_message *m)=0
Call method for the 'simple' whiteboard aka 'typed whiteboard' callbacks that passes data around in a...
virtual void call(std::string s, WBMsg *m)=0
Call method for the OLD whiteboard callbacks that used WBMsg - Deprecated.
virtual ~WBFunctorBase()
destructor
virtual guWhiteboard::wb_types type()=0
getter for the WB type
virtual uint16_t get_event_count()=0
getter for the WB event counter
virtual void set_event_count(uint16_t e)=0
setter for the WB event counter
virtual void call(gu_simple_message *m)=0
Call method for the 'simple' whiteboard aka 'typed whiteboard' callbacks that passes data around in a...
virtual bool is_simple_wb_version()=0
is this being used by the 'simple whiteboard' or the OLD whiteboard (which is now Deprecated)
WBFunctor callback manager class.
uint16_t event_count
the event counter
void(C::* s_func)(guWhiteboard::wb_types, gu_simple_message *)
function prototype for the new 'simple whiteboard' callbacks
WBFunctor(C *obj, void(C::*pFunc)(guWhiteboard::wb_types, gu_simple_message *), guWhiteboard::wb_types t)
WBFunctor Constructor.
uint16_t get_event_count() OVERRIDE
getter for the WB event counter
void(C::* func)(std::string, WBMsg *)
OLD function prototype (which is now Deprecated)
bool simple_wb_version
flag, is this a 'simple' whiteboard usage of WBFunctor
s_func get_s_func_ptr()
getter
func fFunction
OLD function object.
C * fObject
ptr to call containing the callback method
bool is_simple_wb_version() OVERRIDE
is this being used by the 'simple whiteboard' or the OLD whiteboard (which is now Deprecated)
WBFunctor(C *obj, void(C::*pFunc)(std::string, WBMsg *))
WBFunctor Constructor.
void set_event_count(uint16_t e) OVERRIDE
setter for the WB event counter
guWhiteboard::wb_types type() OVERRIDE
getter for the WB type
guWhiteboard::wb_types type_enum
'simple' whiteboard types
void call(guWhiteboard::wb_types t, gu_simple_message *m) OVERRIDE
Call method for the 'simple' whiteboard aka 'typed whiteboard' callbacks that passes data around in a...
void call(gu_simple_message *m) OVERRIDE
Call method for the 'simple' whiteboard aka 'typed whiteboard' callbacks that passes data around in a...
s_func s_fFunction
'simple' function object
void call(std::string s, WBMsg *m) OVERRIDE
Call method for the OLD whiteboard callbacks that used WBMsg - Deprecated.
Old WB class for storing shared data.
typedef::wb_types wb_types
union type that is used to store data in shared memory