Salome HOME
Move Events messages to boost pointers: partially done
[modules/shaper.git] / src / Events / Events_Listener.h
index 2fdcb097f7d05f9b0089de36abf3665ea05fc966..f59bbd2f9d36de78f3cbb9839b06a3d20c889eaf 100644 (file)
@@ -2,10 +2,12 @@
 // Created:    Thu Mar 13 2014
 // Author:     Mikhail PONIKAROV
 
-#ifndef Events_Listener_HeaderFile
-#define Events_Listener_HeaderFile
+#ifndef Events_Listener_H_
+#define Events_Listener_H_
 
 #include <Events.h>
+#include <boost/shared_ptr.hpp>
+
 class Events_Message;
 
 /**\class Events_Listener
@@ -15,11 +17,12 @@ class Events_Message;
  * If some object wants to listen some events it must inherit
  * this class and register in the Loop.
  */
-class EVENTS_EXPORT Events_Listener {
+class EVENTS_EXPORT Events_Listener
+{
 
-public:
+ public:
   //! This method is called by loop when the event is started to process.
-  virtual void processEvent(const Events_Message* theMessage) = 0;
+  virtual void processEvent(const boost::shared_ptr<Events_Message>& theMessage) = 0;
 };
 
 #endif