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