Salome HOME
yfr : Merge with v1.2
[modules/smesh.git] / src / SMDS / SMDS_HSequenceOfMesh_0.cxx
1 //  SMESH SMDS : implementaion of Salome mesh data structure
2 //
3 //  Copyright (C) 2003  OPEN CASCADE
4 // 
5 //  This library is free software; you can redistribute it and/or 
6 //  modify it under the terms of the GNU Lesser General Public 
7 //  License as published by the Free Software Foundation; either 
8 //  version 2.1 of the License. 
9 // 
10 //  This library is distributed in the hope that it will be useful, 
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 //  Lesser General Public License for more details. 
14 // 
15 //  You should have received a copy of the GNU Lesser General Public 
16 //  License along with this library; if not, write to the Free Software 
17 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
18 // 
19 //  See http://www.opencascade.org or email : webmaster@opencascade.org 
20 //
21 //
22 //
23 //  File   : SMDS_HSequenceOfMesh_0.cxx
24 //  Module : SMESH
25
26 using namespace std;
27 #include "SMDS_HSequenceOfMesh.hxx"
28
29 #ifndef _Standard_TypeMismatch_HeaderFile
30 #include <Standard_TypeMismatch.hxx>
31 #endif
32
33 #ifndef _Standard_NoSuchObject_HeaderFile
34 #include <Standard_NoSuchObject.hxx>
35 #endif
36 #ifndef _Standard_OutOfRange_HeaderFile
37 #include <Standard_OutOfRange.hxx>
38 #endif
39 #ifndef _SMDS_Mesh_HeaderFile
40 #include "SMDS_Mesh.hxx"
41 #endif
42 #ifndef _SMDS_SequenceOfMesh_HeaderFile
43 #include "SMDS_SequenceOfMesh.hxx"
44 #endif
45 SMDS_HSequenceOfMesh::~SMDS_HSequenceOfMesh() {}
46  
47
48
49 Standard_EXPORT Handle_Standard_Type& SMDS_HSequenceOfMesh_Type_()
50 {
51
52     static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared);
53   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared);
54   static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient);
55   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient);
56  
57
58   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL};
59   static Handle_Standard_Type _aType = new Standard_Type("SMDS_HSequenceOfMesh",
60                                                          sizeof(SMDS_HSequenceOfMesh),
61                                                          1,
62                                                          (Standard_Address)_Ancestors,
63                                                          (Standard_Address)NULL);
64
65   return _aType;
66 }
67
68
69 // DownCast method
70 //   allow safe downcasting
71 //
72 const Handle(SMDS_HSequenceOfMesh) Handle(SMDS_HSequenceOfMesh)::DownCast(const Handle(Standard_Transient)& AnObject) 
73 {
74   Handle(SMDS_HSequenceOfMesh) _anOtherObject;
75
76   if (!AnObject.IsNull()) {
77      if (AnObject->IsKind(STANDARD_TYPE(SMDS_HSequenceOfMesh))) {
78        _anOtherObject = Handle(SMDS_HSequenceOfMesh)((Handle(SMDS_HSequenceOfMesh)&)AnObject);
79      }
80   }
81
82   return _anOtherObject ;
83 }
84 const Handle(Standard_Type)& SMDS_HSequenceOfMesh::DynamicType() const 
85
86   return STANDARD_TYPE(SMDS_HSequenceOfMesh) ; 
87 }
88 Standard_Boolean SMDS_HSequenceOfMesh::IsKind(const Handle(Standard_Type)& AType) const 
89
90   return (STANDARD_TYPE(SMDS_HSequenceOfMesh) == AType || MMgt_TShared::IsKind(AType)); 
91 }
92 Handle_SMDS_HSequenceOfMesh::~Handle_SMDS_HSequenceOfMesh() {}
93 #define Item Handle_SMDS_Mesh
94 #define Item_hxx "SMDS_Mesh.hxx"
95 #define TheSequence SMDS_SequenceOfMesh
96 #define TheSequence_hxx "SMDS_SequenceOfMesh.hxx"
97 #define TCollection_HSequence SMDS_HSequenceOfMesh
98 #define TCollection_HSequence_hxx "SMDS_HSequenceOfMesh.hxx"
99 #define Handle_TCollection_HSequence Handle_SMDS_HSequenceOfMesh
100 #define TCollection_HSequence_Type_() SMDS_HSequenceOfMesh_Type_()
101 #include <TCollection_HSequence.gxx>
102