![]() |
Max OS 0.3
|
Manages the m_handlers for a type of event, raises events and calls the m_handlers. More...
#include <eventHandler.h>
Public Member Functions | |
| void | connect_event_handler (EventHandler< EventType > *handler) |
| connect an event handler to the event manager if it is not already connected | |
| void | disconnect_event_handler (EventHandler< EventType > *handler) |
| disconnect an event handler from the event manager if it is connected | |
| Vector< Event< EventType > * > | raise_event (Event< EventType > *event) |
| Calls the on_event function of all the event m_handlers connected to the event manager and returns a list of the results. | |
Protected Attributes | |
| Vector< EventHandler< EventType > * > | m_handlers |
Manages the m_handlers for a type of event, raises events and calls the m_handlers.
| EventType | The type of event |
Definition at line 66 of file eventHandler.h.
| void MaxOS::common::EventManager< EventType >::connect_event_handler | ( | EventHandler< EventType > * | handler | ) |
connect an event handler to the event manager if it is not already connected
| EventType | The type of event |
| handler | The event handler to connect |
Definition at line 121 of file eventHandler.h.
Referenced by MaxOS::net::TransmissionControlProtocolHandler::bind().
| void MaxOS::common::EventManager< EventType >::disconnect_event_handler | ( | EventHandler< EventType > * | handler | ) |
disconnect an event handler from the event manager if it is connected
| EventType | The type of event |
| handler | The event handler to disconnect |
Definition at line 137 of file eventHandler.h.
| Vector< Event< EventType > * > MaxOS::common::EventManager< EventType >::raise_event | ( | Event< EventType > * | event | ) |
Calls the on_event function of all the event m_handlers connected to the event manager and returns a list of the results.
| EventType | The type of event |
| event | The event to raise |
Definition at line 153 of file eventHandler.h.
References MaxOS::common::Vector< Type >::push_back().
|
protected |
Definition at line 68 of file eventHandler.h.
Referenced by MaxOS::net::UserDatagramProtocolHandler::bind().