Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[modules/shaper.git]
/
src
/
Events
/
Events_Listener.h
diff --git
a/src/Events/Events_Listener.h
b/src/Events/Events_Listener.h
index 5bac8dc8a8bf444330d716c3bd5f93f1fb5c36a2..90dedcdfd14e9b0654c12545a755a0a3228c62f3 100644
(file)
--- a/
src/Events/Events_Listener.h
+++ b/
src/Events/Events_Listener.h
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: Events_Listener.hxx
// Created: Thu Mar 13 2014
// Author: Mikhail PONIKAROV
// File: Events_Listener.hxx
// Created: Thu Mar 13 2014
// Author: Mikhail PONIKAROV
@@
-6,6
+8,8
@@
#define Events_Listener_H_
#include <Events.h>
#define Events_Listener_H_
#include <Events.h>
+#include <memory>
+
class Events_Message;
/**\class Events_Listener
class Events_Message;
/**\class Events_Listener
@@
-15,11
+19,12
@@
class Events_Message;
* If some object wants to listen some events it must inherit
* this class and register in the Loop.
*/
* 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.
//! 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
};
#endif