Last change
on this file since 6763 was
5291,
checked in by bensch, 19 years ago
|
orxonox/trunk: minor bug-fixes in the Event_listener.
still have to find the 'even-level'-bug
|
File size:
504 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file event_listener.h |
---|
3 | * Definition of an event listener base class |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _EVENT_LISTENER_H |
---|
7 | #define _EVENT_LISTENER_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | #include "event.h" |
---|
11 | |
---|
12 | //! A class for event listener |
---|
13 | class EventListener : virtual public BaseObject { |
---|
14 | |
---|
15 | public: |
---|
16 | EventListener(); |
---|
17 | virtual ~EventListener(); |
---|
18 | |
---|
19 | /** |
---|
20 | * abstract function that processes events from the handler |
---|
21 | * @param event: the event |
---|
22 | */ |
---|
23 | virtual void process(const Event &event) = 0; |
---|
24 | }; |
---|
25 | |
---|
26 | #endif /* _EVENT_LISTENER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.