]> SALOME platform Git repositories - modules/shaper.git/blob - src/Event/Event_Listener.hxx
Salome HOME
8a17122d9f9e579a1e2f1cdf7e9b434fab614eb9
[modules/shaper.git] / src / Event / Event_Listener.hxx
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.hxx>
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