]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMAlgo/GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_0.cxx
Salome HOME
ec2a4a473a8fe6cd5f2615ee0ffc97cb811d95d3
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_0.cxx
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
2
3 //
4
5 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
6
7 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
8
9 //
10
11 // This library is free software; you can redistribute it and/or
12
13 // modify it under the terms of the GNU Lesser General Public
14
15 // License as published by the Free Software Foundation; either
16
17 // version 2.1 of the License.
18
19 //
20
21 // This library is distributed in the hope that it will be useful,
22
23 // but WITHOUT ANY WARRANTY; without even the implied warranty of
24
25 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
26
27 // Lesser General Public License for more details.
28
29 //
30
31 // You should have received a copy of the GNU Lesser General Public
32
33 // License along with this library; if not, write to the Free Software
34
35 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
36
37 //
38
39 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
40
41
42
43 #include <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>
44
45
46
47 #include <Basics_OCCTVersion.hxx>
48
49
50
51 #ifndef _Standard_TypeMismatch_HeaderFile
52
53 #include <Standard_TypeMismatch.hxx>
54
55 #endif
56
57
58
59 #ifndef _TopoDS_Shape_HeaderFile
60
61 #include <TopoDS_Shape.hxx>
62
63 #endif
64
65 #ifndef _TopTools_MapOfShape_HeaderFile
66
67 #include <TopTools_MapOfShape.hxx>
68
69 #endif
70
71 #ifndef _TopTools_ShapeMapHasher_HeaderFile
72
73 #include <TopTools_ShapeMapHasher.hxx>
74
75 #endif
76
77 #ifndef _GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile
78
79 #include <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>
80
81 #endif
82
83 #ifndef _GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape_HeaderFile
84
85 #include <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>
86
87 #endif
88
89
90
91  
92
93 #if OCC_VERSION_LARGE > 0x06040000 // Porting to OCCT6.5.1
94
95
96
97 IMPLEMENT_STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)
98
99 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY()
100
101   STANDARD_TYPE(TCollection_MapNode),
102
103   STANDARD_TYPE(MMgt_TShared),
104
105   STANDARD_TYPE(Standard_Transient),
106
107
108
109 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END()
110
111 IMPLEMENT_STANDARD_TYPE_END(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)
112
113
114
115 IMPLEMENT_DOWNCAST(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape,Standard_Transient)
116
117 IMPLEMENT_STANDARD_RTTI(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)
118
119
120
121 #else
122
123
124
125 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()
126
127 {
128
129   static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode);
130
131   static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
132
133   static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
134
135
136
137   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
138
139   static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape",
140
141                                                          sizeof(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape),
142
143                                                          1,
144
145                                                          (Standard_Address)_Ancestors,
146
147                                                          (Standard_Address)NULL);
148
149
150
151   return _aType;
152
153 }
154
155
156
157 // DownCast method
158
159 //   allow safe downcasting
160
161 //
162
163 const Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)::DownCast(const Handle(Standard_Transient)& AnObject) 
164
165 {
166
167   Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) _anOtherObject;
168
169
170
171   if (!AnObject.IsNull()) {
172
173      if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape))) {
174
175        _anOtherObject = Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)((Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)&)AnObject);
176
177      }
178
179   }
180
181
182
183   return _anOtherObject;
184
185 }
186
187
188
189 const Handle(Standard_Type)& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape::DynamicType() const 
190
191
192
193   return STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape); 
194
195 }
196
197
198
199 #endif
200
201
202
203 #define TheKey TopoDS_Shape
204
205 #define TheKey_hxx <TopoDS_Shape.hxx>
206
207 #define TheItem TopTools_MapOfShape
208
209 #define TheItem_hxx <TopTools_MapOfShape.hxx>
210
211 #define Hasher TopTools_ShapeMapHasher
212
213 #define Hasher_hxx <TopTools_ShapeMapHasher.hxx>
214
215 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape
216
217 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>
218
219 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape
220
221 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>
222
223 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape
224
225 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()
226
227 #define TCollection_DataMap GEOMAlgo_DataMapOfShapeMapOfShape
228
229 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>
230
231 #include <TCollection_DataMapNode.gxx>
232
233
234