Salome HOME
Add checking that object is used before the delete operation
[modules/shaper.git] / src / Model / Model_Data.h
index 94490d4aa6e3542842df307cb3b33d05de60a123..559fc12adb3444e4a31cc8e30fca673dd00db810 100644 (file)
@@ -129,6 +129,16 @@ class Model_Data : public ModelAPI_Data
   }
 
   MODEL_EXPORT virtual void erase();
+
+  /// Makes feature must be updated later (on rebuild). Normally the Updater must call it
+  /// in case of not-automatic update to true
+  MODEL_EXPORT virtual void mustBeUpdated(const bool theFlag);
+
+  /// Returns true if feature must be updated (re-executed) on rebuild
+  MODEL_EXPORT virtual bool mustBeUpdated();
+
+  /// Returns true if this data attributes are referenced to the given feature or its results
+  MODEL_EXPORT virtual bool referencesTo(const boost::shared_ptr<ModelAPI_Feature>& theFeature);
 };
 
 #endif