+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: Events_Listener.hxx
// 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 <memory>
+
class Events_Message;
/**\class Events_Listener
* 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 std::shared_ptr<Events_Message>& theMessage) = 0;
};
#endif