1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : SALOMEDS_TableOfStringAttribute.ixx
8 // Author : Sergey Ruin
11 #include <SALOMEDS_TableOfStringAttribute.jxx>
13 #ifndef _Standard_TypeMismatch_HeaderFile
14 #include <Standard_TypeMismatch.hxx>
17 SALOMEDS_TableOfStringAttribute::~SALOMEDS_TableOfStringAttribute() {}
21 Standard_EXPORT Handle_Standard_Type& SALOMEDS_TableOfStringAttribute_Type_()
24 static Handle_Standard_Type aType1 = STANDARD_TYPE(TDF_Attribute);
25 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDF_Attribute);
26 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
27 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
28 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
29 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
32 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
33 static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_TableOfStringAttribute",
34 sizeof(SALOMEDS_TableOfStringAttribute),
36 (Standard_Address)_Ancestors,
37 (Standard_Address)NULL);
44 // allow safe downcasting
46 const Handle(SALOMEDS_TableOfStringAttribute) Handle(SALOMEDS_TableOfStringAttribute)::DownCast(const Handle(Standard_Transient)& AnObject)
48 Handle(SALOMEDS_TableOfStringAttribute) _anOtherObject;
50 if (!AnObject.IsNull()) {
51 if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_TableOfStringAttribute))) {
52 _anOtherObject = Handle(SALOMEDS_TableOfStringAttribute)((Handle(SALOMEDS_TableOfStringAttribute)&)AnObject);
56 return _anOtherObject ;
58 const Handle(Standard_Type)& SALOMEDS_TableOfStringAttribute::DynamicType() const
60 return STANDARD_TYPE(SALOMEDS_TableOfStringAttribute) ;
62 Standard_Boolean SALOMEDS_TableOfStringAttribute::IsKind(const Handle(Standard_Type)& AType) const
64 return (STANDARD_TYPE(SALOMEDS_TableOfStringAttribute) == AType || TDF_Attribute::IsKind(AType));
66 Handle_SALOMEDS_TableOfStringAttribute::~Handle_SALOMEDS_TableOfStringAttribute() {}