16#ifndef __albaObserverCallback_h
17#define __albaObserverCallback_h
58 void (*m_Callback)(
void *,
albaID,
void *);
long albaID
type for IDs inside ALBA
Implementation of the message object for the Subject/Observer design pattern.
Abstract superclass for all ALBA classes implementing RTTI APIs.
Concrete implementation of Observer calling a callback function.
virtual ~albaObserverCallback()
virtual void OnEvent(albaEventBase *e)
process the events sent by subjects
albaTypeMacro(albaObserverCallback, albaObject)
void SetClientData(void *cd)
set client data to be passed to callback function
void SetCallback(void(*f)(void *sender, albaID eid, void *clientdata))
Set function callback to be called by this observer.
void * GetClientData()
return client data passed to callback function
Interface implementing the Observer of the Subject/Observer design pattern.