1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
5 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
7 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
11 // This library is free software; you can redistribute it and/or
13 // modify it under the terms of the GNU Lesser General Public
15 // License as published by the Free Software Foundation; either
17 // version 2.1 of the License.
21 // This library is distributed in the hope that it will be useful,
23 // but WITHOUT ANY WARRANTY; without even the implied warranty of
25 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 // Lesser General Public License for more details.
31 // You should have received a copy of the GNU Lesser General Public
33 // License along with this library; if not, write to the Free Software
35 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
39 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
43 #include <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>
47 #include <Basics_OCCTVersion.hxx>
51 #ifndef _Standard_TypeMismatch_HeaderFile
53 #include <Standard_TypeMismatch.hxx>
59 #ifndef _TopoDS_Shape_HeaderFile
61 #include <TopoDS_Shape.hxx>
65 #ifndef _TopTools_MapOfShape_HeaderFile
67 #include <TopTools_MapOfShape.hxx>
71 #ifndef _TopTools_ShapeMapHasher_HeaderFile
73 #include <TopTools_ShapeMapHasher.hxx>
77 #ifndef _GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile
79 #include <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>
83 #ifndef _GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape_HeaderFile
85 #include <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>
93 #if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
97 IMPLEMENT_STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)
99 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()
101 STANDARD_TYPE(TCollection_MapNode),
103 STANDARD_TYPE(MMgt_TShared),
105 STANDARD_TYPE(Standard_Transient),
109 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()
111 IMPLEMENT_STANDARD_TYPE_END(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)
115 IMPLEMENT_DOWNCAST(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape,Standard_Transient)
117 IMPLEMENT_STANDARD_RTTI(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)
125 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()
129 static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode);
131 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
133 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
137 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
139 static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape",
141 sizeof(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape),
145 (Standard_Address)_Ancestors,
147 (Standard_Address)NULL);
159 // allow safe downcasting
163 const Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)::DownCast(const Handle(Standard_Transient)& AnObject)
167 Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) _anOtherObject;
171 if (!AnObject.IsNull()) {
173 if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape))) {
175 _anOtherObject = Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)((Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)&)AnObject);
183 return _anOtherObject;
189 const Handle(Standard_Type)& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape::DynamicType() const
193 return STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape);
203 #define TheKey TopoDS_Shape
205 #define TheKey_hxx <TopoDS_Shape.hxx>
207 #define TheItem TopTools_MapOfShape
209 #define TheItem_hxx <TopTools_MapOfShape.hxx>
211 #define Hasher TopTools_ShapeMapHasher
213 #define Hasher_hxx <TopTools_ShapeMapHasher.hxx>
215 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape
217 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>
219 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape
221 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>
223 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape
225 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()
227 #define TCollection_DataMap GEOMAlgo_DataMapOfShapeMapOfShape
229 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>
231 #include <TCollection_DataMapNode.gxx>