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