X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Entity.h;h=0df866a806222c258d2a104a617b9b506916cbea;hb=deed826b2d6c39ba2ed410108cdf54d64cded321;hp=9f2633a28673d09931f3f3826a31f4e2409ded79;hpb=7b9454f8053b968f127bf7981eb05b6749e261f4;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Entity.h b/src/HYDROData/HYDROData_Entity.h index 9f2633a2..0df866a8 100644 --- a/src/HYDROData/HYDROData_Entity.h +++ b/src/HYDROData/HYDROData_Entity.h @@ -69,15 +69,6 @@ protected: // ... }; - /** - * Enumeration of tags corresponding to the child sub-objects of object. - */ - enum ChildTag - { - ChildTag_First = 0 ///< first tag, to reserve - // ... - }; - public: DEFINE_STANDARD_RTTI(HYDROData_Entity); @@ -89,12 +80,12 @@ public: /** * Returns the name of this object. */ - HYDRODATA_EXPORT QString GetName() const; + HYDRODATA_EXPORT virtual QString GetName() const; /** * Updates the name of this object. */ - HYDRODATA_EXPORT void SetName(const QString& theName); + HYDRODATA_EXPORT virtual void SetName( const QString& theName ); /** * Dump object to Python script representation. @@ -105,11 +96,9 @@ public: HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const; /** - * Updates object state. - * Base implementation dose nothing. - * \param theIsForce force reupdating of data object + * Updates object state. Base implementation dose nothing. */ - HYDRODATA_EXPORT virtual void Update( const bool theIsForce = true ); + HYDRODATA_EXPORT virtual void Update(); /** * Returns data of object wrapped to QVariant. @@ -117,6 +106,18 @@ public: */ HYDRODATA_EXPORT virtual QVariant GetDataVariant(); + /** + * Sets the "MustBeUpdated" flag: if object is depended on updated features. + * \param theFlag is true for objects that must be updated, false for up-to-date + */ + HYDRODATA_EXPORT void SetToUpdate( bool theFlag ); + + /** + * Returns the "MustBeUpdated" flag: is object data must be updated or not + * \returns false if object is up to date + */ + HYDRODATA_EXPORT bool IsMustBeUpdated() const; + /** * Checks is object exists in the data structure. * \returns true is object is not exists in the data model @@ -131,19 +132,19 @@ public: /** * Returns unique integer identifier of the object (may be used for ordering of objects) */ - HYDRODATA_EXPORT inline int ID() const {return myLab.Tag();} + HYDRODATA_EXPORT inline int ID() const { return myLab.Tag(); } /** * Copies all properties of this to the destinated object. * Objects must be the same type. * \param theDestination initialized object (from any document) - target of copying */ - HYDRODATA_EXPORT void CopyTo(Handle_HYDROData_Entity theDestination) const; + HYDRODATA_EXPORT void CopyTo( Handle_HYDROData_Entity theDestination ) const; /** * Returns the label of this object. */ - HYDRODATA_EXPORT TDF_Label& Label() {return myLab;} + HYDRODATA_EXPORT TDF_Label& Label() { return myLab; } /** * Returns father object. For object created under root document label