Salome HOME
MPV:
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx
1 //  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
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   : Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx
25 //  Author : Yves FRICAUD
26 //  Module : SALOME
27 //  $Header$
28
29 #include "SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx"
30
31 #ifndef _Standard_TypeMismatch_HeaderFile
32 #include <Standard_TypeMismatch.hxx>
33 #endif
34
35 #ifndef _TCollection_ExtendedString_HeaderFile
36 #include <TCollection_ExtendedString.hxx>
37 #endif
38 #ifndef _TDF_Label_HeaderFile
39 #include <TDF_Label.hxx>
40 #endif
41 #ifndef _SALOMEDS_DataMapStringLabel_HeaderFile
42 #include "SALOMEDS_DataMapStringLabel.hxx"
43 #endif
44 #ifndef _SALOMEDS_DataMapIteratorOfDataMapStringLabel_HeaderFile
45 #include "SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx"
46 #endif
47 using namespace std;
48 SALOMEDS_DataMapNodeOfDataMapStringLabel::~SALOMEDS_DataMapNodeOfDataMapStringLabel() {}
49  
50
51
52 Standard_EXPORT Handle_Standard_Type& SALOMEDS_DataMapNodeOfDataMapStringLabel_Type_()
53 {
54
55     static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode);
56   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode);
57   static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
58   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
59   static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
60   if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
61  
62
63   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
64   static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_DataMapNodeOfDataMapStringLabel",
65                                                          sizeof(SALOMEDS_DataMapNodeOfDataMapStringLabel),
66                                                          1,
67                                                          (Standard_Address)_Ancestors,
68                                                          (Standard_Address)NULL);
69
70   return _aType;
71 }
72
73
74 // DownCast method
75 //   allow safe downcasting
76 //
77 const Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel) Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)::DownCast(const Handle(Standard_Transient)& AnObject) 
78 {
79   Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel) _anOtherObject;
80
81   if (!AnObject.IsNull()) {
82      if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_DataMapNodeOfDataMapStringLabel))) {
83        _anOtherObject = Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)((Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)&)AnObject);
84      }
85   }
86
87   return _anOtherObject ;
88 }
89 const Handle(Standard_Type)& SALOMEDS_DataMapNodeOfDataMapStringLabel::DynamicType() const 
90
91   return STANDARD_TYPE(SALOMEDS_DataMapNodeOfDataMapStringLabel) ; 
92 }
93 Standard_Boolean SALOMEDS_DataMapNodeOfDataMapStringLabel::IsKind(const Handle(Standard_Type)& AType) const 
94
95   return (STANDARD_TYPE(SALOMEDS_DataMapNodeOfDataMapStringLabel) == AType || TCollection_MapNode::IsKind(AType)); 
96 }
97 Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel::~Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel() {}
98 #define TheKey TCollection_ExtendedString
99 #define TheKey_hxx <TCollection_ExtendedString.hxx>
100 #define TheItem TDF_Label
101 #define TheItem_hxx <TDF_Label.hxx>
102 #define Hasher TCollection_ExtendedString
103 #define Hasher_hxx <TCollection_ExtendedString.hxx>
104 #define TCollection_DataMapNode SALOMEDS_DataMapNodeOfDataMapStringLabel
105 #define TCollection_DataMapNode_hxx "SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx"
106 #define TCollection_DataMapIterator SALOMEDS_DataMapIteratorOfDataMapStringLabel
107 #define TCollection_DataMapIterator_hxx "SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx"
108 #define Handle_TCollection_DataMapNode Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel
109 #define TCollection_DataMapNode_Type_() SALOMEDS_DataMapNodeOfDataMapStringLabel_Type_()
110 #define TCollection_DataMap SALOMEDS_DataMapStringLabel
111 #define TCollection_DataMap_hxx "SALOMEDS_DataMapStringLabel.hxx"
112 #include <TCollection_DataMapNode.gxx>
113