Salome HOME
Adaptation to SALOME environment (Issue #31)
[modules/shaper.git] / src / Events / Events_Listener.h
diff --git a/src/Events/Events_Listener.h b/src/Events/Events_Listener.h
new file mode 100644 (file)
index 0000000..2fdcb09
--- /dev/null
@@ -0,0 +1,25 @@
+// File:       Events_Listener.hxx
+// Created:    Thu Mar 13 2014
+// Author:     Mikhail PONIKAROV
+
+#ifndef Events_Listener_HeaderFile
+#define Events_Listener_HeaderFile
+
+#include <Events.h>
+class Events_Message;
+
+/**\class Events_Listener
+ * \ingroup EventsLoop
+ * \brief Base interface for any event listener.
+ *
+ * If some object wants to listen some events it must inherit
+ * this class and register in the Loop.
+ */
+class EVENTS_EXPORT Events_Listener {
+
+public:
+  //! This method is called by loop when the event is started to process.
+  virtual void processEvent(const Events_Message* theMessage) = 0;
+};
+
+#endif