Salome HOME
patch for correct compilation on Linux
[modules/hydro.git] / src / HYDROData / HYDROData_Entity.h
index 02c191160873fe31ca2403e308454bd86f5987f6..dd067a187fa9de588ed177378ccdcf5b38248052 100644 (file)
@@ -131,6 +131,14 @@ public:
    */
   HYDRODATA_EXPORT virtual void Remove();
 
+  /**
+   * Returns flag indicating that object can be removed or not.
+   * Reimplement this method in class which can't be removed 
+   * separately with it parent object.
+   * Base implementaiton returns always TRUE.
+   */
+  HYDRODATA_EXPORT virtual bool CanRemove();
+
   /**
    * Returns unique integer identifier of the object (may be used for ordering of objects)
    */
@@ -148,12 +156,21 @@ public:
    */
   HYDRODATA_EXPORT TDF_Label& Label() { return myLab; }
 
+
   /**
    * Returns father object. For object created under root document label
    * this method always return NULL object.
    */
   HYDRODATA_EXPORT virtual Handle(HYDROData_Entity) GetFatherObject() const;
 
+
+  /**
+   * Returns the list of all reference objects of this object.
+   * Base implementation always return empty list.
+   */
+  HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const;
+
+
 protected:
 
   friend class HYDROData_Iterator;