Salome HOME
Boost has been removed from code
[modules/shaper.git] / src / Events / Events_Listener.h
1 // File:        Events_Listener.hxx
2 // Created:     Thu Mar 13 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef Events_Listener_H_
6 #define Events_Listener_H_
7
8 #include <Events.h>
9 #include <memory>
10
11 class Events_Message;
12
13 /**\class Events_Listener
14  * \ingroup EventsLoop
15  * \brief Base interface for any event listener.
16  *
17  * If some object wants to listen some events it must inherit
18  * this class and register in the Loop.
19  */
20 class EVENTS_EXPORT Events_Listener
21 {
22
23  public:
24   //! This method is called by loop when the event is started to process.
25   virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage) = 0;
26 };
27
28 #endif