AURobotServers
4
|
#include <uclientfuncbase.h>
Public Types | |
typedef bool(UCallBack::* | Method) (const char *interface, const char *dataType, void *data) |
Public Member Functions | |
bool | addEventHandler (UCallBack *object, Method methodToCall) |
bool | event (const char *interface, const char *dataType, void *dataPtr) |
UOnEvent () | |
~UOnEvent () | |
Protected Attributes | |
Method | method [MAX_CALL_BACKS] |
UCallBack * | obj [MAX_CALL_BACKS] |
int | objCnt |
Static Protected Attributes | |
static const int | MAX_CALL_BACKS = 20 |
typedef bool(UCallBack::* UOnEvent::Method) (const char *interface, const char *dataType, void *data) |
Type method to call when event happends
UOnEvent::UOnEvent | ( | ) |
Constructor
UOnEvent::~UOnEvent | ( | ) |
Destructor
Set callbach instance
Referenced by UCallBack::addOnEvent().
bool UOnEvent::event | ( | const char * | interface, |
const char * | dataType, | ||
void * | dataPtr | ||
) |
When an event happends do the call
Referenced by UClientFuncObstGrp::handleObst(), UClientFuncSF::handlePass(), UResLaserIfSf::handlePass(), UClientFuncSF::handleRoad(), UResLaserIfSf::handleRoad(), UClientFuncSF::handleSF(), and UResLaserIfSf::handleSF().
|
staticprotected |
|
protected |
Method pointer in object
|
protected |
objects to calle
|
protected |
Number of objects used