AURobotServers  4
Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
UOnEvent Class Reference

#include <uclientfuncbase.h>

Inheritance diagram for UOnEvent:
Inheritance graph

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]
 
UCallBackobj [MAX_CALL_BACKS]
 
int objCnt
 

Static Protected Attributes

static const int MAX_CALL_BACKS = 20
 

Member Typedef Documentation

typedef bool(UCallBack::* UOnEvent::Method) (const char *interface, const char *dataType, void *data)

Type method to call when event happends

Constructor & Destructor Documentation

UOnEvent::UOnEvent ( )

Constructor

UOnEvent::~UOnEvent ( )

Destructor

Member Function Documentation

bool UOnEvent::addEventHandler ( UCallBack object,
Method  methodToCall 
)

Set callbach instance

Referenced by UCallBack::addOnEvent().

bool UOnEvent::event ( const char *  interface,
const char *  dataType,
void *  dataPtr 
)

Member Data Documentation

const int UOnEvent::MAX_CALL_BACKS = 20
staticprotected
Method UOnEvent::method[MAX_CALL_BACKS]
protected

Method pointer in object

UCallBack* UOnEvent::obj[MAX_CALL_BACKS]
protected

objects to calle

int UOnEvent::objCnt
protected

Number of objects used


The documentation for this class was generated from the following files: