]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Hotfix to make source compilable under linux.
authorsbh <sergey.belash@opencascade.com>
Fri, 23 May 2014 04:02:53 +0000 (08:02 +0400)
committersbh <sergey.belash@opencascade.com>
Fri, 23 May 2014 04:02:53 +0000 (08:02 +0400)
src/Model/Model_Events.cpp
src/Model/Model_Events.h

index 35606208d18dee1cb3b0fbaf6e0b11963c80839a..538305efb72d9270c76f0400bcee586efeba9697 100644 (file)
@@ -6,30 +6,30 @@
 #include <Events_Loop.h>
 
 // DELETED methods
-Events_MessageGroup* Model_FeatureDeletedMessage::newEmpty() {
-  return new Model_FeatureDeletedMessage(myDoc, "");
-}
-
-Model_FeatureDeletedMessage::Model_FeatureDeletedMessage(
-  const boost::shared_ptr<ModelAPI_Document>& theDoc, const std::string& theGroup)
-  : Events_MessageGroup(messageId(), 0), myDoc(theDoc)
-
-{
-  if (!theGroup.empty())
-    myGroups.insert(theGroup);
-}
-
-const Events_ID Model_FeatureDeletedMessage::messageId()
-{
-  static Events_ID MY_ID = Events_Loop::eventByName(EVENT_FEATURE_DELETED);
-  return MY_ID;
-}
-
-void Model_FeatureDeletedMessage::Join(Events_MessageGroup& theJoined)
-{
-  Model_FeatureDeletedMessage* aJoined = dynamic_cast<Model_FeatureDeletedMessage*>(&theJoined);
-  std::set<std::string>::iterator aGIter = aJoined->myGroups.begin();
-  for(; aGIter != aJoined->myGroups.end(); aGIter++) {
-    myGroups.insert(*aGIter);
-  }
-}
+//Events_MessageGroup* Model_FeatureDeletedMessage::newEmpty() {
+//  return new Model_FeatureDeletedMessage(myDoc, "");
+//}
+//
+//Model_FeatureDeletedMessage::Model_FeatureDeletedMessage(
+//  const boost::shared_ptr<ModelAPI_Document>& theDoc, const std::string& theGroup)
+//  : Events_MessageGroup(messageId(), 0), myDoc(theDoc)
+//
+//{
+//  if (!theGroup.empty())
+//    myGroups.insert(theGroup);
+//}
+//
+//const Events_ID Model_FeatureDeletedMessage::messageId()
+//{
+//  static Events_ID MY_ID = Events_Loop::eventByName(EVENT_FEATURE_DELETED);
+//  return MY_ID;
+//}
+//
+//void Model_FeatureDeletedMessage::Join(Events_MessageGroup& theJoined)
+//{
+//  Model_FeatureDeletedMessage* aJoined = dynamic_cast<Model_FeatureDeletedMessage*>(&theJoined);
+//  std::set<std::string>::iterator aGIter = aJoined->myGroups.begin();
+//  for(; aGIter != aJoined->myGroups.end(); aGIter++) {
+//    myGroups.insert(*aGIter);
+//  }
+//}
index 6f8631fb38b833911a7a52d91afef6aa37d4a330..0bce1c980bc508eed36659bb9a3504a12d50e8c0 100644 (file)
@@ -59,11 +59,11 @@ class Model_FeatureDeletedMessage : public Events_MessageGroup {
   std::set<std::string> myGroups; ///< group identifiers that contained the deleted feature
 public:
   /// creates a message by initialization of fields
-  Model_FeatureDeletedMessage(const boost::shared_ptr<ModelAPI_Document>& theDoc,
-    const std::string& theGroup);
+//  Model_FeatureDeletedMessage(const boost::shared_ptr<ModelAPI_Document>& theDoc,
+//    const std::string& theGroup);
 
   /// Returns the ID of this message (EVENT_FEATURE_DELETED)
-  static const Events_ID messageId();
+//  static const Events_ID messageId();
 
   /// Returns the feature that has been updated
   boost::shared_ptr<ModelAPI_Document> document() const {return myDoc;}
@@ -72,10 +72,38 @@ public:
   const std::set<std::string >& groups() const {return myGroups;}
 
   //! Creates a new empty group (to store it in the loop before flush)
-  virtual Events_MessageGroup* newEmpty();
+//  virtual Events_MessageGroup* newEmpty();
 
   //! Allows to join the given message with the current one
-  virtual void Join(Events_MessageGroup& theJoined);
+//  virtual void Join(Events_MessageGroup& theJoined);
+
+  Events_MessageGroup* newEmpty() {
+    return new Model_FeatureDeletedMessage(myDoc, "");
+  }
+
+  Model_FeatureDeletedMessage(
+    const boost::shared_ptr<ModelAPI_Document>& theDoc, const std::string& theGroup)
+    : Events_MessageGroup(messageId(), 0), myDoc(theDoc)
+
+  {
+    if (!theGroup.empty())
+      myGroups.insert(theGroup);
+  }
+
+  const Events_ID messageId()
+  {
+    static Events_ID MY_ID = Events_Loop::eventByName(EVENT_FEATURE_DELETED);
+    return MY_ID;
+  }
+
+  void Join(Events_MessageGroup& theJoined)
+  {
+    Model_FeatureDeletedMessage* aJoined = dynamic_cast<Model_FeatureDeletedMessage*>(&theJoined);
+    std::set<std::string>::iterator aGIter = aJoined->myGroups.begin();
+    for(; aGIter != aJoined->myGroups.end(); aGIter++) {
+      myGroups.insert(*aGIter);
+    }
+  }
 };
 
 #endif