1 // File : SALOMEDS_TableOfStringAttribute.ixx
2 // Created : Mon Apr 7 10:13:30 2003
3 // Author : Sergey Ruin
6 // Copyright : Open CASCADE
8 #include <SALOMEDS_TableOfStringAttribute.jxx>
10 #ifndef _Standard_TypeMismatch_HeaderFile
11 #include <Standard_TypeMismatch.hxx>
14 SALOMEDS_TableOfStringAttribute::~SALOMEDS_TableOfStringAttribute() {}
18 Standard_EXPORT Handle_Standard_Type& SALOMEDS_TableOfStringAttribute_Type_()
21 static Handle_Standard_Type aType1 = STANDARD_TYPE(TDF_Attribute);
22 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDF_Attribute);
23 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
24 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
25 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
26 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
29 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
30 static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_TableOfStringAttribute",
31 sizeof(SALOMEDS_TableOfStringAttribute),
33 (Standard_Address)_Ancestors,
34 (Standard_Address)NULL);
41 // allow safe downcasting
43 const Handle(SALOMEDS_TableOfStringAttribute) Handle(SALOMEDS_TableOfStringAttribute)::DownCast(const Handle(Standard_Transient)& AnObject)
45 Handle(SALOMEDS_TableOfStringAttribute) _anOtherObject;
47 if (!AnObject.IsNull()) {
48 if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_TableOfStringAttribute))) {
49 _anOtherObject = Handle(SALOMEDS_TableOfStringAttribute)((Handle(SALOMEDS_TableOfStringAttribute)&)AnObject);
53 return _anOtherObject ;
55 const Handle(Standard_Type)& SALOMEDS_TableOfStringAttribute::DynamicType() const
57 return STANDARD_TYPE(SALOMEDS_TableOfStringAttribute) ;
59 Standard_Boolean SALOMEDS_TableOfStringAttribute::IsKind(const Handle(Standard_Type)& AType) const
61 return (STANDARD_TYPE(SALOMEDS_TableOfStringAttribute) == AType || TDF_Attribute::IsKind(AType));
63 Handle_SALOMEDS_TableOfStringAttribute::~Handle_SALOMEDS_TableOfStringAttribute() {}