source:
orxonox.OLD/trunk/src/lib/event/event_listener.h
@
5477
Last change on this file since 5477 was 5291, checked in by bensch, 19 years ago | |
---|---|
File size: 504 bytes |
Rev | Line | |
---|---|---|
[5143] | 1 | /*! |
[5039] | 2 | * @file event_listener.h |
[5239] | 3 | * Definition of an event listener base class |
[4329] | 4 | */ |
5 | ||
[4346] | 6 | #ifndef _EVENT_LISTENER_H |
7 | #define _EVENT_LISTENER_H | |
[4329] | 8 | |
9 | #include "base_object.h" | |
[4365] | 10 | #include "event.h" |
[4329] | 11 | |
[4346] | 12 | //! A class for event listener |
[4404] | 13 | class EventListener : virtual public BaseObject { |
[4329] | 14 | |
15 | public: | |
[4346] | 16 | EventListener(); |
17 | virtual ~EventListener(); | |
[4329] | 18 | |
[4454] | 19 | /** |
[5291] | 20 | * abstract function that processes events from the handler |
[4836] | 21 | * @param event: the event |
[5291] | 22 | */ |
[5279] | 23 | virtual void process(const Event &event) = 0; |
[4329] | 24 | }; |
25 | ||
[4346] | 26 | #endif /* _EVENT_LISTENER_H */ |
Note: See TracBrowser
for help on using the repository browser.