#include <QStringList>
#include <QVariant>
+static const Standard_GUID GUID_MUST_BE_UPDATED("80f2bb81-3873-4631-8ddd-940d2119f000");
+
IMPLEMENT_STANDARD_HANDLE(HYDROData_Entity,MMgt_TShared)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Entity,MMgt_TShared)
bool IsEqual(const Handle_HYDROData_Entity& theObj1, const Handle_HYDROData_Entity& theObj2)
{
if ( !theObj1.IsNull() && !theObj2.IsNull() )
- return theObj1->ID() == theObj2->ID();
+ return theObj1->Label() == theObj2->Label();
return false;
}
return anEmptyList;
}
-void HYDROData_Entity::Update( const bool theIsForce )
+void HYDROData_Entity::Update()
{
}
return QVariant();
}
+void HYDROData_Entity::SetToUpdate(bool theFlag)
+{
+ if ( theFlag )
+ {
+ TDataStd_UAttribute::Set( myLab, GUID_MUST_BE_UPDATED );
+ }
+ else
+ {
+ myLab.ForgetAttribute( GUID_MUST_BE_UPDATED );
+ }
+}
+
+bool HYDROData_Entity::IsMustBeUpdated() const
+{
+ return myLab.IsAttribute( GUID_MUST_BE_UPDATED );
+}
+
bool HYDROData_Entity::IsRemoved() const
{
return !myLab.HasAttribute();