EventTrapper Class Reference#include <EventTrapper.h>
Inheritance diagram for EventTrapper:
[legend]List of all members.
Detailed Description
An interface to allow a standard method of trapping events.
Trappers get first dibs on events and can prevent the event from being sent any further
This is handy in situations where an event is more than a notification, and must be "handled" - the trapper which handles it returns true, otherwise it is passed to the next one
A trapper can filter any and all events, EXCEPT timers. This *could* be changed, if a good reason is presented.
Definition at line 12 of file EventTrapper.h.
|
Public Member Functions |
virtual | ~EventTrapper () |
| destructor
|
virtual bool | trapEvent (const EventBase &event)=0 |
| for receiving events - you must override this to inherit
|
Constructor & Destructor Documentation
Member Function Documentation
virtual bool EventTrapper::trapEvent |
( |
const EventBase & |
event |
) |
[pure virtual] |
|
|
for receiving events - you must override this to inherit
- See also:
- EventRouter
- Parameters:
-
event | the event being received |
- Returns:
true if the event was trapped (shouldn't be sent to listeners), false otherwise
Implemented in Controller, WorldStateVelDaemon, and EventTranslator. |
The documentation for this class was generated from the following file:
|