From: adv Date: Wed, 30 Oct 2013 12:53:08 +0000 (+0000) Subject: Child tag has ben removed from data model. X-Git-Tag: BR_hydro_v_0_3~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1947d881e6cc89c04ad9463ecd57c48a379f38bb;p=modules%2Fhydro.git Child tag has ben removed from data model. --- diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index b62bcb5c..af132d34 100644 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -225,12 +225,12 @@ void HYDROData_CalculationCase::RemoveRegion( const Handle(HYDROData_Region)& th void HYDROData_CalculationCase::RemoveRegions() { ClearReferenceObjects( DataTag_Region ); - myLab.FindChild( ChildTag_Region ).ForgetAllAttributes( true ); + myLab.FindChild( DataTag_ChildRegion ).ForgetAllAttributes( true ); } Handle(HYDROData_Region) HYDROData_CalculationCase::addNewRegion() { - TDF_Label aNewLab = myLab.FindChild( ChildTag_Region ).NewChild(); + TDF_Label aNewLab = myLab.FindChild( DataTag_ChildRegion ).NewChild(); Handle(HYDROData_Region) aNewRegion = Handle(HYDROData_Region)::DownCast( HYDROData_Iterator::CreateObject( aNewLab, KIND_REGION ) ); diff --git a/src/HYDROData/HYDROData_CalculationCase.h b/src/HYDROData/HYDROData_CalculationCase.h index 916057be..79d3aae3 100644 --- a/src/HYDROData/HYDROData_CalculationCase.h +++ b/src/HYDROData/HYDROData_CalculationCase.h @@ -28,18 +28,10 @@ protected: { DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve DataTag_GeometryObject, ///< reference geometry objects + DataTag_ChildRegion, ///< child regions DataTag_Region ///< reference regions }; - /** - * Enumeration of tags corresponding to the child sub-objects of object. - */ - enum ChildTag - { - ChildTag_First = HYDROData_Entity::ChildTag_First + 100, ///< first tag, to reserve - ChildTag_Region ///< child regions - }; - public: DEFINE_STANDARD_RTTI(HYDROData_CalculationCase); diff --git a/src/HYDROData/HYDROData_Entity.h b/src/HYDROData/HYDROData_Entity.h index 9f2633a2..84a82778 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); diff --git a/src/HYDROData/HYDROData_Object.h b/src/HYDROData/HYDROData_Object.h index 59ccfedb..fec76b16 100644 --- a/src/HYDROData/HYDROData_Object.h +++ b/src/HYDROData/HYDROData_Object.h @@ -28,14 +28,6 @@ protected: DataTag_Bathymetry, ///< reference bathymetry }; - /** - * Enumeration of tags corresponding to the child sub-objects of object. - */ - enum ChildTag - { - ChildTag_First = HYDROData_Entity::ChildTag_First + 100, ///< first tag, to reserve - }; - public: DEFINE_STANDARD_RTTI(HYDROData_Object); diff --git a/src/HYDROData/HYDROData_Region.cxx b/src/HYDROData/HYDROData_Region.cxx index a9b9923f..40d193b5 100644 --- a/src/HYDROData/HYDROData_Region.cxx +++ b/src/HYDROData/HYDROData_Region.cxx @@ -105,12 +105,12 @@ void HYDROData_Region::RemoveZone( const Handle(HYDROData_Zone)& theZone ) void HYDROData_Region::RemoveZones() { ClearReferenceObjects( DataTag_Zone ); - myLab.FindChild( ChildTag_Zone ).ForgetAllAttributes( true ); + myLab.FindChild( DataTag_ChildZone ).ForgetAllAttributes( true ); } Handle(HYDROData_Zone) HYDROData_Region::addNewZone() { - TDF_Label aNewLab = myLab.FindChild( ChildTag_Zone ).NewChild(); + TDF_Label aNewLab = myLab.FindChild( DataTag_ChildZone ).NewChild(); Handle(HYDROData_Zone) aNewZone = Handle(HYDROData_Zone)::DownCast( HYDROData_Iterator::CreateObject( aNewLab, KIND_ZONE ) ); diff --git a/src/HYDROData/HYDROData_Region.h b/src/HYDROData/HYDROData_Region.h index 09c69de6..5ba5bf96 100644 --- a/src/HYDROData/HYDROData_Region.h +++ b/src/HYDROData/HYDROData_Region.h @@ -23,18 +23,10 @@ protected: enum DataTag { DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve + DataTag_ChildZone, ///< child zones DataTag_Zone, ///< reference zones }; - /** - * Enumeration of tags corresponding to the child sub-objects of object. - */ - enum ChildTag - { - ChildTag_First = HYDROData_Entity::ChildTag_First + 100, ///< first tag, to reserve - ChildTag_Zone ///< child zones - }; - public: DEFINE_STANDARD_RTTI(HYDROData_Region);