Salome HOME
Porting to OCCT development version: Standard_PI -> M_PI
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_0.cxx
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
2 //\r
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,\r
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS\r
5 //\r
6 // This library is free software; you can redistribute it and/or\r
7 // modify it under the terms of the GNU Lesser General Public\r
8 // License as published by the Free Software Foundation; either\r
9 // version 2.1 of the License.\r
10 //\r
11 // This library is distributed in the hope that it will be useful,\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
14 // Lesser General Public License for more details.\r
15 //\r
16 // You should have received a copy of the GNU Lesser General Public\r
17 // License along with this library; if not, write to the Free Software\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
19 //\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
21 \r
22 #include <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>\r
23 \r
24 #include <Basics_OCCTVersion.hxx>\r
25 \r
26 #ifndef _Standard_TypeMismatch_HeaderFile\r
27 #include <Standard_TypeMismatch.hxx>\r
28 #endif\r
29 \r
30 #ifndef _TopoDS_Shape_HeaderFile\r
31 #include <TopoDS_Shape.hxx>\r
32 #endif\r
33 #ifndef _TopTools_MapOfShape_HeaderFile\r
34 #include <TopTools_MapOfShape.hxx>\r
35 #endif\r
36 #ifndef _TopTools_ShapeMapHasher_HeaderFile\r
37 #include <TopTools_ShapeMapHasher.hxx>\r
38 #endif\r
39 #ifndef _GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile\r
40 #include <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>\r
41 #endif\r
42 #ifndef _GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape_HeaderFile\r
43 #include <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>\r
44 #endif\r
45 \r
46  \r
47 #if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1\r
48 \r
49 IMPLEMENT_STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)\r
50 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()\r
51   STANDARD_TYPE(TCollection_MapNode),\r
52   STANDARD_TYPE(MMgt_TShared),\r
53   STANDARD_TYPE(Standard_Transient),\r
54 \r
55 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()\r
56 IMPLEMENT_STANDARD_TYPE_END(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)\r
57 \r
58 IMPLEMENT_DOWNCAST(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape,Standard_Transient)\r
59 IMPLEMENT_STANDARD_RTTI(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)\r
60 \r
61 #else\r
62 \r
63 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()\r
64 {\r
65   static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode);\r
66   static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);\r
67   static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);\r
68 \r
69   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};\r
70   static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape",\r
71                                                          sizeof(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape),\r
72                                                          1,\r
73                                                          (Standard_Address)_Ancestors,\r
74                                                          (Standard_Address)NULL);\r
75 \r
76   return _aType;\r
77 }\r
78 \r
79 // DownCast method\r
80 //   allow safe downcasting\r
81 //\r
82 const Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)::DownCast(const Handle(Standard_Transient)& AnObject) \r
83 {\r
84   Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) _anOtherObject;\r
85 \r
86   if (!AnObject.IsNull()) {\r
87      if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape))) {\r
88        _anOtherObject = Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)((Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)&)AnObject);\r
89      }\r
90   }\r
91 \r
92   return _anOtherObject;\r
93 }\r
94 \r
95 const Handle(Standard_Type)& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape::DynamicType() const \r
96\r
97   return STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape); \r
98 }\r
99 \r
100 #endif\r
101 \r
102 #define TheKey TopoDS_Shape\r
103 #define TheKey_hxx <TopoDS_Shape.hxx>\r
104 #define TheItem TopTools_MapOfShape\r
105 #define TheItem_hxx <TopTools_MapOfShape.hxx>\r
106 #define Hasher TopTools_ShapeMapHasher\r
107 #define Hasher_hxx <TopTools_ShapeMapHasher.hxx>\r
108 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape\r
109 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>\r
110 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape\r
111 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>\r
112 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape\r
113 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()\r
114 #define TCollection_DataMap GEOMAlgo_DataMapOfShapeMapOfShape\r
115 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>\r
116 #include <TCollection_DataMapNode.gxx>\r
117 \r