Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / Event / Event_Listener.h
1 // File:        Event_Listener.hxx
2 // Created:     Thu Mar 13 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef Event_Listener_HeaderFile
6 #define Event_Listener_HeaderFile
7
8 #include <Event.h>
9 class Event_Message;
10
11 /**\class Event_Listener
12  * \ingroup EventLoop
13  * \brief Base interface for any event listener.
14  *
15  * If some object wants to listen some events it must inherit
16  * this class and register in the Loop.
17  */
18 class EVENT_EXPORT Event_Listener {
19
20 public:
21   //! This method is called by loop when the event is started to process.
22   virtual void ProcessEvent(const Event_Message* theMessage) = 0;
23 };
24
25 #endif