1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx
25 // Author : Yves FRICAUD
30 #include "SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx"
32 #ifndef _Standard_TypeMismatch_HeaderFile
33 #include <Standard_TypeMismatch.hxx>
36 #ifndef _TCollection_ExtendedString_HeaderFile
37 #include <TCollection_ExtendedString.hxx>
39 #ifndef _TDF_Label_HeaderFile
40 #include <TDF_Label.hxx>
42 #ifndef _SALOMEDS_DataMapStringLabel_HeaderFile
43 #include "SALOMEDS_DataMapStringLabel.hxx"
45 #ifndef _SALOMEDS_DataMapIteratorOfDataMapStringLabel_HeaderFile
46 #include "SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx"
48 SALOMEDS_DataMapNodeOfDataMapStringLabel::~SALOMEDS_DataMapNodeOfDataMapStringLabel() {}
52 Standard_EXPORT Handle_Standard_Type& SALOMEDS_DataMapNodeOfDataMapStringLabel_Type_()
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);
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),
67 (Standard_Address)_Ancestors,
68 (Standard_Address)NULL);
75 // allow safe downcasting
77 const Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel) Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)::DownCast(const Handle(Standard_Transient)& AnObject)
79 Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel) _anOtherObject;
81 if (!AnObject.IsNull()) {
82 if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_DataMapNodeOfDataMapStringLabel))) {
83 _anOtherObject = Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)((Handle(SALOMEDS_DataMapNodeOfDataMapStringLabel)&)AnObject);
87 return _anOtherObject ;
89 const Handle(Standard_Type)& SALOMEDS_DataMapNodeOfDataMapStringLabel::DynamicType() const
91 return STANDARD_TYPE(SALOMEDS_DataMapNodeOfDataMapStringLabel) ;
93 Standard_Boolean SALOMEDS_DataMapNodeOfDataMapStringLabel::IsKind(const Handle(Standard_Type)& AType) const
95 return (STANDARD_TYPE(SALOMEDS_DataMapNodeOfDataMapStringLabel) == AType || TCollection_MapNode::IsKind(AType));
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>