From: sbh Date: Mon, 8 Dec 2014 09:49:44 +0000 (+0300) Subject: Fixes dynamic_pointer_cast problem for ModelAPI_ObjectDeletedMessage (Debian Squezee) X-Git-Tag: V_0.6.0^2~8^2~1^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5dfbffd4a90c30d96a5dbf3525a909b75d89ca9f;p=modules%2Fshaper.git Fixes dynamic_pointer_cast problem for ModelAPI_ObjectDeletedMessage (Debian Squezee) --- diff --git a/src/Model/Model_Events.h b/src/Model/Model_Events.h index 163c84581..e262377c4 100644 --- a/src/Model/Model_Events.h +++ b/src/Model/Model_Events.h @@ -8,6 +8,8 @@ #include #include +#include + /// Allovs to create ModelAPI messages class Model_EventCreator : public ModelAPI_EventCreator { diff --git a/src/ModelAPI/CMakeLists.txt b/src/ModelAPI/CMakeLists.txt index bbc99cbb1..ca13fe13d 100644 --- a/src/ModelAPI/CMakeLists.txt +++ b/src/ModelAPI/CMakeLists.txt @@ -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 index 000000000..074ba0501 --- /dev/null +++ b/src/ModelAPI/ModelAPI_Events.cpp @@ -0,0 +1,34 @@ +/* + * ModelAPI_Events.cpp + * + * Created on: Dec 8, 2014 + * Author: sbh + */ + +#include +#include + +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() +{ + +} + diff --git a/src/ModelAPI/ModelAPI_Events.h b/src/ModelAPI/ModelAPI_Events.h index 9141c146c..5806a6122 100644 --- a/src/ModelAPI/ModelAPI_Events.h +++ b/src/ModelAPI/ModelAPI_Events.h @@ -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 +#include #include + #include #include #include -#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