Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

EventHub Class Reference

#include <eventhub.h>

Inheritance diagram for EventHub:

Inheritance graph
[legend]
Collaboration diagram for EventHub:

Collaboration graph
[legend]

Detailed Description

Event hubs allow other objects to receive events they are interested in. Derive your class from EventHub to allow other objects to attach event listeners to it.


Public Member Functions

virtual void register_event_listener (const char *, EventListener *)
virtual void unregister_event_listener (const char *, EventListener *)
virtual ~EventHub ()

Protected Member Functions

void send_event2listeners (Event *)

Protected Attributes

std::map< const char *, std::set<
EventListener * > * > 
event_listeners


Constructor & Destructor Documentation

EventHub::~EventHub  )  [virtual]
 


Member Function Documentation

void EventHub::send_event2listeners Event  )  [protected]
 

Here is the call graph for this function:

void EventHub::register_event_listener const char *  ,
EventListener
[virtual]
 

Reimplemented in SceneNode.

void EventHub::unregister_event_listener const char *  ,
EventListener
[virtual]
 

Reimplemented in SceneNode.


Field Documentation

std::map< const char*, std::set<EventListener*>* > EventHub::event_listeners [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Jun 23 18:47:32 2004 for cZUI by doxygen 1.3.5