Salome HOME
Add a ChangeLog file
[modules/smesh.git] / src / SMDS / SMDS_SequenceNodeOfSequenceOfMesh_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_SequenceNodeOfSequenceOfMesh_0.cxx
24 //  Module : SMESH
25
26 using namespace std;
27 #include "SMDS_SequenceNodeOfSequenceOfMesh.hxx"
28
29 #ifndef _Standard_TypeMismatch_HeaderFile
30 #include <Standard_TypeMismatch.hxx>
31 #endif
32
33 #ifndef _SMDS_Mesh_HeaderFile
34 #include "SMDS_Mesh.hxx"
35 #endif
36 #ifndef _SMDS_SequenceOfMesh_HeaderFile
37 #include "SMDS_SequenceOfMesh.hxx"
38 #endif
39 SMDS_SequenceNodeOfSequenceOfMesh::~SMDS_SequenceNodeOfSequenceOfMesh() {}
40  
41
42
43 Standard_EXPORT Handle_Standard_Type& SMDS_SequenceNodeOfSequenceOfMesh_Type_()
44 {
45
46     static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_SeqNode);
47   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_SeqNode);
48   static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
49   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
50   static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
51   if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
52  
53
54   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
55   static Handle_Standard_Type _aType = new Standard_Type("SMDS_SequenceNodeOfSequenceOfMesh",
56                                                          sizeof(SMDS_SequenceNodeOfSequenceOfMesh),
57                                                          1,
58                                                          (Standard_Address)_Ancestors,
59                                                          (Standard_Address)NULL);
60
61   return _aType;
62 }
63
64
65 // DownCast method
66 //   allow safe downcasting
67 //
68 const Handle(SMDS_SequenceNodeOfSequenceOfMesh) Handle(SMDS_SequenceNodeOfSequenceOfMesh)::DownCast(const Handle(Standard_Transient)& AnObject) 
69 {
70   Handle(SMDS_SequenceNodeOfSequenceOfMesh) _anOtherObject;
71
72   if (!AnObject.IsNull()) {
73      if (AnObject->IsKind(STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh))) {
74        _anOtherObject = Handle(SMDS_SequenceNodeOfSequenceOfMesh)((Handle(SMDS_SequenceNodeOfSequenceOfMesh)&)AnObject);
75      }
76   }
77
78   return _anOtherObject ;
79 }
80 const Handle(Standard_Type)& SMDS_SequenceNodeOfSequenceOfMesh::DynamicType() const 
81
82   return STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh) ; 
83 }
84 Standard_Boolean SMDS_SequenceNodeOfSequenceOfMesh::IsKind(const Handle(Standard_Type)& AType) const 
85
86   return (STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh) == AType || TCollection_SeqNode::IsKind(AType)); 
87 }
88 Handle_SMDS_SequenceNodeOfSequenceOfMesh::~Handle_SMDS_SequenceNodeOfSequenceOfMesh() {}
89 #define SeqItem Handle_SMDS_Mesh
90 #define SeqItem_hxx "SMDS_Mesh.hxx"
91 #define TCollection_SequenceNode SMDS_SequenceNodeOfSequenceOfMesh
92 #define TCollection_SequenceNode_hxx "SMDS_SequenceNodeOfSequenceOfMesh.hxx"
93 #define Handle_TCollection_SequenceNode Handle_SMDS_SequenceNodeOfSequenceOfMesh
94 #define TCollection_SequenceNode_Type_() SMDS_SequenceNodeOfSequenceOfMesh_Type_()
95 #define TCollection_Sequence SMDS_SequenceOfMesh
96 #define TCollection_Sequence_hxx "SMDS_SequenceOfMesh.hxx"
97 #include <TCollection_SequenceNode.gxx>
98