event_handler_base Class Reference

This is the base class for actual event handlers. More...

#include <event_handler_base.h>

Inheritance diagram for event_handler_base:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~event_handler_base ()
 Destructor.
virtual void register_event (event *ev)=0
 Registers an event.
virtual void remove_event (event *ev)=0
 Unregister an event.
virtual void raise_event (const event *ev)=0
 Check if an event corresponding to ev exists, and execute it.


Detailed Description

This is the base class for actual event handlers.

It keeps track of registered scripts, recieves triggered events and executes scripts handling those events

Definition at line 34 of file event_handler_base.h.


Constructor & Destructor Documentation

virtual event_handler_base::~event_handler_base (  )  [inline, virtual]

Destructor.

Definition at line 41 of file event_handler_base.h.


Member Function Documentation

virtual void event_handler_base::register_event ( event ev  )  [pure virtual]

Registers an event.

Parameters:
ev pointer to the event to register.

Implemented in map_event_handler, and time_event_handler.

virtual void event_handler_base::remove_event ( event ev  )  [pure virtual]

Unregister an event.

Parameters:
ev pointer to the event to unregister.

Implemented in map_event_handler, and time_event_handler.

virtual void event_handler_base::raise_event ( const event ev  )  [pure virtual]

Check if an event corresponding to ev exists, and execute it.

Parameters:
ev event to raise.

Implemented in map_event_handler, and time_event_handler.


The documentation for this class was generated from the following file:

Generated on Wed Jun 18 16:52:11 2008 for Adonthell by  doxygen 1.5.6