+void HYDROData_Entity::SetToUpdate( bool theFlag )
+{
+ if ( IsMustBeUpdated() == theFlag )
+ return;
+
+ if ( theFlag )
+ {
+ TDataStd_UAttribute::Set( myLab, GUID_MUST_BE_UPDATED );
+
+ Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myLab );
+ if ( !aDocument.IsNull() )
+ {
+ // Change the states of this and all depended objects
+ HYDROData_Tool::SetMustBeUpdatedObjects( aDocument );
+ }
+ }
+ else
+ {
+ myLab.ForgetAttribute( GUID_MUST_BE_UPDATED );
+ }
+}
+
+bool HYDROData_Entity::IsMustBeUpdated() const
+{
+ return myLab.IsAttribute( GUID_MUST_BE_UPDATED );
+}
+
+bool HYDROData_Entity::CanBeUpdated() const
+{
+ return true;
+}
+