]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Unresolved symbols problem fix
authormpv <mikhail.ponikarov@opencascade.com>
Thu, 22 May 2014 12:08:53 +0000 (16:08 +0400)
committermpv <mikhail.ponikarov@opencascade.com>
Thu, 22 May 2014 12:08:53 +0000 (16:08 +0400)
src/Model/Model_Events.cpp
src/Model/Model_Events.h

index 76655e1eec43a70b28f347420a9983c2883bcbfe..35606208d18dee1cb3b0fbaf6e0b11963c80839a 100644 (file)
@@ -5,21 +5,6 @@
 #include <Model_Events.h>
 #include <Events_Loop.h>
 
-// UPDATED methods
-Events_MessageGroup* Model_FeatureUpdatedMessage::newEmpty() {
-  boost::shared_ptr<ModelAPI_Feature> anEmptyFeature;
-  return new Model_FeatureUpdatedMessage(anEmptyFeature, eventID());
-}
-
-void Model_FeatureUpdatedMessage::Join(Events_MessageGroup& theJoined)
-{
-  Model_FeatureUpdatedMessage* aJoined = dynamic_cast<Model_FeatureUpdatedMessage*>(&theJoined);
-  std::set<boost::shared_ptr<ModelAPI_Feature> >::iterator aFIter = aJoined->myFeatures.begin();
-  for(; aFIter != aJoined->myFeatures.end(); aFIter++) {
-    myFeatures.insert(*aFIter);
-  }
-}
-
 // DELETED methods
 Events_MessageGroup* Model_FeatureDeletedMessage::newEmpty() {
   return new Model_FeatureDeletedMessage(myDoc, "");
index 4423238e05b83b63b38e7f1aecf55420dbf42773..6f8631fb38b833911a7a52d91afef6aa37d4a330 100644 (file)
@@ -38,9 +38,19 @@ public:
   std::set<boost::shared_ptr<ModelAPI_Feature> > features() const {return myFeatures;}
 
   //! Creates a new empty group (to store it in the loop before flush)
-  virtual Events_MessageGroup* newEmpty();
+  virtual Events_MessageGroup* newEmpty() {
+    boost::shared_ptr<ModelAPI_Feature> anEmptyFeature;
+    return new Model_FeatureUpdatedMessage(anEmptyFeature, eventID());
+  }
+
   //! Allows to join the given message with the current one
-  virtual void Join(Events_MessageGroup& theJoined);
+  virtual void Join(Events_MessageGroup& theJoined) {
+    Model_FeatureUpdatedMessage* aJoined = dynamic_cast<Model_FeatureUpdatedMessage*>(&theJoined);
+    std::set<boost::shared_ptr<ModelAPI_Feature> >::iterator aFIter = aJoined->myFeatures.begin();
+    for(; aFIter != aJoined->myFeatures.end(); aFIter++) {
+      myFeatures.insert(*aFIter);
+    }
+  }
 };
 
 /// Message that feature was deleted (used for Object Browser update)