gusimplewhiteboard
|
WBFunctor callback manager class. More...
#include <WBFunctor.h>
Public Types | |
typedef void(C::* | s_func) (guWhiteboard::wb_types, gu_simple_message *) |
function prototype for the new 'simple whiteboard' callbacks More... | |
Public Member Functions | |
WBFunctor (C *obj, void(C::*pFunc)(std::string, WBMsg *)) | |
WBFunctor Constructor. More... | |
WBFunctor (C *obj, void(C::*pFunc)(guWhiteboard::wb_types, gu_simple_message *), guWhiteboard::wb_types t) | |
WBFunctor Constructor. More... | |
void | call (std::string s, WBMsg *m) OVERRIDE |
Call method for the OLD whiteboard callbacks that used WBMsg - Deprecated. More... | |
void | call (gu_simple_message *m) OVERRIDE |
Call method for the 'simple' whiteboard aka 'typed whiteboard' callbacks that passes data around in a union. More... | |
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 union. More... | |
guWhiteboard::wb_types | type () OVERRIDE |
getter for the WB type More... | |
uint16_t | get_event_count () OVERRIDE |
getter for the WB event counter More... | |
void | set_event_count (uint16_t e) OVERRIDE |
setter for the WB event counter More... | |
bool | is_simple_wb_version () OVERRIDE |
is this being used by the 'simple whiteboard' or the OLD whiteboard (which is now Deprecated) More... | |
s_func | get_s_func_ptr () |
getter More... | |
![]() | |
virtual | ~WBFunctorBase () |
destructor More... | |
Protected Types | |
typedef void(C::* | func) (std::string, WBMsg *) |
OLD function prototype (which is now Deprecated) More... | |
Protected Attributes | |
C * | fObject |
ptr to call containing the callback method More... | |
func | fFunction |
OLD function object. More... | |
s_func | s_fFunction |
'simple' function object More... | |
guWhiteboard::wb_types | type_enum |
'simple' whiteboard types More... | |
uint16_t | event_count |
the event counter More... | |
bool | simple_wb_version |
flag, is this a 'simple' whiteboard usage of WBFunctor More... | |
WBFunctor callback manager class.
This class allows you to pass a function pointer for callbacks
Definition at line 88 of file WBFunctor.h.
OLD function prototype (which is now Deprecated)
Definition at line 155 of file WBFunctor.h.
typedef void(C::* WBFunctor< C >::s_func) (guWhiteboard::wb_types, gu_simple_message *) |
function prototype for the new 'simple whiteboard' callbacks
Definition at line 148 of file WBFunctor.h.
|
inline |
WBFunctor Constructor.
Definition at line 94 of file WBFunctor.h.
|
inline |
WBFunctor Constructor.
Definition at line 100 of file WBFunctor.h.
|
inlinevirtual |
Call method for the 'simple' whiteboard aka 'typed whiteboard' callbacks that passes data around in a union.
m | data value |
Implements WBFunctorBase.
Definition at line 117 of file WBFunctor.h.
References WBFunctor< C >::fObject, WBFunctor< C >::s_fFunction, and WBFunctor< C >::type_enum.
|
inlinevirtual |
Call method for the 'simple' whiteboard aka 'typed whiteboard' callbacks that passes data around in a union.
This version allows a 'type' overwrite. This is mostly used by the 'whiteboard poster' to impersonate other message types.
t | whiteboard 'type' |
m | data value |
Implements WBFunctorBase.
Definition at line 127 of file WBFunctor.h.
References WBFunctor< C >::fObject, and WBFunctor< C >::s_fFunction.
Call method for the OLD whiteboard callbacks that used WBMsg - Deprecated.
s | type string value |
m | WBMsg data value |
Implements WBFunctorBase.
Definition at line 108 of file WBFunctor.h.
References WBFunctor< C >::fFunction, and WBFunctor< C >::fObject.
|
inlinevirtual |
getter for the WB event counter
Implements WBFunctorBase.
Definition at line 136 of file WBFunctor.h.
References WBFunctor< C >::event_count.
|
inlinevirtual |
is this being used by the 'simple whiteboard' or the OLD whiteboard (which is now Deprecated)
Implements WBFunctorBase.
Definition at line 145 of file WBFunctor.h.
References WBFunctor< C >::simple_wb_version.
|
inlinevirtual |
setter for the WB event counter
e | new event counter value |
Implements WBFunctorBase.
Definition at line 142 of file WBFunctor.h.
References WBFunctor< C >::event_count.
|
inlinevirtual |
getter for the WB type
Implements WBFunctorBase.
Definition at line 133 of file WBFunctor.h.
References WBFunctor< C >::type_enum.
|
protected |
the event counter
Definition at line 159 of file WBFunctor.h.
Referenced by WBFunctor< C >::get_event_count(), and WBFunctor< C >::set_event_count().
OLD function object.
Definition at line 156 of file WBFunctor.h.
Referenced by WBFunctor< C >::call().
|
protected |
ptr to call containing the callback method
Definition at line 154 of file WBFunctor.h.
Referenced by WBFunctor< C >::call().
'simple' function object
Definition at line 157 of file WBFunctor.h.
Referenced by WBFunctor< C >::call(), and WBFunctor< C >::get_s_func_ptr().
|
protected |
flag, is this a 'simple' whiteboard usage of WBFunctor
Definition at line 160 of file WBFunctor.h.
Referenced by WBFunctor< C >::is_simple_wb_version().
|
protected |
'simple' whiteboard types
Definition at line 158 of file WBFunctor.h.
Referenced by WBFunctor< C >::call(), and WBFunctor< C >::type().