]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixes dynamic_pointer_cast problem for ModelAPI_ObjectDeletedMessage (Debian Squezee)
authorsbh <sergey.belash@opencascade.com>
Mon, 8 Dec 2014 09:49:44 +0000 (12:49 +0300)
committersbh <sergey.belash@opencascade.com>
Mon, 8 Dec 2014 09:49:44 +0000 (12:49 +0300)
src/Model/Model_Events.h
src/ModelAPI/CMakeLists.txt
src/ModelAPI/ModelAPI_Events.cpp [new file with mode: 0644]
src/ModelAPI/ModelAPI_Events.h

index 163c84581f7234059987c424dbb26be4968c0b7e..e262377c4c5144855df9a3b0f78dc00c30a0feee 100644 (file)
@@ -8,6 +8,8 @@
 #include <Model.h>
 #include <ModelAPI_Events.h>
 
+#include <memory>
+
 /// Allovs to create ModelAPI messages
 class Model_EventCreator : public ModelAPI_EventCreator
 {
index bbc99cbb1543d004c3504af482afb9439aa07577..ca13fe13d2424255544eaae83573980f09311186 100644 (file)
@@ -39,6 +39,7 @@ SET(PROJECT_HEADERS
 )
 
 SET(PROJECT_SOURCES
+    ModelAPI_Events.cpp
     ModelAPI_Feature.cpp
     ModelAPI_Session.cpp
     ModelAPI_Tools.cpp
diff --git a/src/ModelAPI/ModelAPI_Events.cpp b/src/ModelAPI/ModelAPI_Events.cpp
new file mode 100644 (file)
index 0000000..074ba05
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * ModelAPI_Events.cpp
+ *
+ *  Created on: Dec 8, 2014
+ *      Author: sbh
+ */
+
+#include <ModelAPI.h>
+#include <ModelAPI_Events.h>
+
+ModelAPI_ObjectUpdatedMessage::ModelAPI_ObjectUpdatedMessage(const Events_ID theID,
+                                                             const void* theSender)
+    : Events_MessageGroup(theID, theSender)
+{
+
+}
+
+ModelAPI_ObjectUpdatedMessage::~ModelAPI_ObjectUpdatedMessage()
+{
+
+}
+
+ModelAPI_ObjectDeletedMessage::ModelAPI_ObjectDeletedMessage(const Events_ID theID,
+                                                             const void* theSender)
+    : Events_MessageGroup(theID, theSender)
+{
+
+}
+
+ModelAPI_ObjectDeletedMessage::~ModelAPI_ObjectDeletedMessage()
+{
+
+}
+
index 9141c146c77797186cedd851dbacfeed9095a83f..5806a61225d2d9b1ed7337b947cef3315ccf217b 100644 (file)
@@ -2,16 +2,17 @@
 // Created:     10 Apr 2014
 // Author:      Mikhail PONIKAROV
 
-#ifndef ModelAPI_Events_H_
-#define ModelAPI_Events_H_
+#ifndef MODELAPI_EVENTS_H_
+#define MODELAPI_EVENTS_H_
 
 #include <ModelAPI.h>
+#include <ModelAPI_Object.h>
 #include <Events_MessageGroup.h>
+
 #include <memory>
 #include <string>
 #include <set>
 
-#include "ModelAPI_Object.h"
 
 class ModelAPI_Document;
 
@@ -38,10 +39,8 @@ static const char * EVENT_OBJECT_TOHIDE = "ObjectHide";
 class ModelAPI_ObjectUpdatedMessage : public Events_MessageGroup
 {
  protected:
-  ModelAPI_ObjectUpdatedMessage(const Events_ID theID, const void* theSender = 0)
-      : Events_MessageGroup(theID, theSender)
-  {
-  }
+  ModelAPI_ObjectUpdatedMessage(const Events_ID theID, const void* theSender = 0);
+  virtual ~ModelAPI_ObjectUpdatedMessage();
 
  public:
   /// Returns the feature that has been updated
@@ -58,10 +57,8 @@ class ModelAPI_ObjectUpdatedMessage : public Events_MessageGroup
 class ModelAPI_ObjectDeletedMessage : public Events_MessageGroup
 {
  protected:
-  ModelAPI_ObjectDeletedMessage(const Events_ID theID, const void* theSender = 0)
-      : Events_MessageGroup(theID, theSender)
-  {
-  }
+  ModelAPI_ObjectDeletedMessage(const Events_ID theID, const void* theSender = 0);
+  virtual ~ModelAPI_ObjectDeletedMessage();
 
  public:
   /// Returns the feature that has been updated