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
Move Events messages to boost pointers: partially done
[modules/shaper.git]
/
src
/
Events
/
Events_Listener.h
diff --git
a/src/Events/Events_Listener.h
b/src/Events/Events_Listener.h
index 5bac8dc8a8bf444330d716c3bd5f93f1fb5c36a2..f59bbd2f9d36de78f3cbb9839b06a3d20c889eaf 100644
(file)
--- a/
src/Events/Events_Listener.h
+++ b/
src/Events/Events_Listener.h
@@
-6,6
+6,8
@@
#define Events_Listener_H_
#include <Events.h>
#define Events_Listener_H_
#include <Events.h>
+#include <boost/shared_ptr.hpp>
+
class Events_Message;
/**\class Events_Listener
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.
*/
* 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
boost::shared_ptr<Events_Message>&
theMessage) = 0;
};
#endif
};
#endif