It ensures global access to the individual event handlers.
More...
#include <event_handler.h>
Static Public Member Functions |
static void | init () |
| Instanciate the actual event handlers.
|
static void | cleanup () |
| Delete the event handlers.
|
static void | remove_event (event *ev) |
| Unregister an event.
|
static void | raise_event (const event *ev) |
| Check if an event corresponding to ev exists, and execute it.
|
Detailed Description
It ensures global access to the individual event handlers.
Definition at line 33 of file event_handler.h.
Member Function Documentation
void event_handler::init |
( |
| ) |
|
|
static |
Instanciate the actual event handlers.
Event handlers can be specific to a certain event, or take care of different events.
Definition at line 41 of file event_handler.cc.
void event_handler::cleanup |
( |
void |
| ) |
|
|
static |
static void event_handler::remove_event |
( |
event * |
ev | ) |
|
|
inlinestatic |
Unregister an event.
- Parameters
-
ev | pointer to the event to unregister. |
Definition at line 53 of file event_handler.h.
static void event_handler::raise_event |
( |
const event * |
ev | ) |
|
|
inlinestatic |
Check if an event corresponding to ev exists, and execute it.
- Parameters
-
Definition at line 64 of file event_handler.h.
static void event_handler::register_event |
( |
event * |
ev | ) |
|
|
inlinestaticprotected |
Registers an event.
- Parameters
-
ev | pointer to the event to register. |
Definition at line 75 of file event_handler.h.
Friends And Related Function Documentation
Only event_list is allowed to register events with the event_handler.
The documentation for this class was generated from the following files: