AURobotServers
4
|
#include <uclientfuncbase.h>
Public Member Functions | |
bool | addOnEvent (UOnEvent *dataObject) |
virtual bool | onEvent (const char *interface, const char *dataType, void *data) |
UCallBack () | |
virtual | ~UCallBack () |
Base class that encapsulates the ability to make a call-back, when a data source based on UOnEvent has new data. The function 'onEvent' should be overwritten and will be called when the data source is updated. To start the call back function the 'addOnEvent('dataSourceObject')' should be called
UCallBack::UCallBack | ( | ) |
Constructor
|
virtual |
Destructor
bool UCallBack::addOnEvent | ( | UOnEvent * | dataObject | ) |
Add this callback
References UOnEvent::addEventHandler(), and onEvent().
Referenced by UClientFuncLaserGui::setObstList(), and UClientFuncLaserGui::setSfPool().
|
virtual |
Call back function
Reimplemented in UClientFuncLaserGui.
References bool2str().
Referenced by addOnEvent().