ALBA
|
#include <albaEventSender.h>
Public Member Functions | |
albaEventSender () | |
virtual void | SetListener (albaObserver *o) |
virtual albaObserver * | GetListener () |
virtual bool | HasListener () |
virtual void | InvokeEvent (albaEventBase &e) |
virtual void | InvokeEvent (albaEventBase *e) |
virtual void | InvokeEvent (void *sender, albaID id=ID_NO_EVENT, void *data=NULL) |
Protected Attributes | |
albaObserver * | m_Listener |
class acting as an interface for objects using ALBA hierarchical event communication model This object simply defines a SetListener/GetListener functions for connecting with a listener object to create a hierarchy of objects.
This allows to send events up in the hierarchy implementing what was the original ALBA event communication model: this is a unicast communication model very well suited for hierarchically organized objects. For sending events up in the tree the albaEventMacro() or the InvokeEvent() function can be use.
Definition at line 34 of file albaEventSender.h.
|
inline |
Definition at line 37 of file albaEventSender.h.
|
inlinevirtual |
Set the listener object, i.e.
the object receiving events sent by this object
Reimplemented in albaEventBroadcaster.
Definition at line 40 of file albaEventSender.h.
|
inlinevirtual |
Return the listener object, i.e.
the object receiving events sent by this object
Definition at line 43 of file albaEventSender.h.
|
inlinevirtual |
return true if this class has observers
Definition at line 46 of file albaEventSender.h.
|
inlinevirtual |
invoke an event of this subject
Reimplemented in albaEventBroadcaster.
Definition at line 49 of file albaEventSender.h.
|
inlinevirtual |
invoke an event of this subject
Reimplemented in albaEventBroadcaster.
Definition at line 52 of file albaEventSender.h.
|
inlinevirtual |
invoke an event of this subject
Reimplemented in albaEventBroadcaster.
Definition at line 55 of file albaEventSender.h.
|
protected |
object to which events issued by this object are sent
Definition at line 58 of file albaEventSender.h.