1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
5 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
7 // File : SALOMEDS_TableOfIntegerAttribute.ixx
8 // Author : Michael Ponikarov
12 #include <SALOMEDS_TableOfIntegerAttribute.jxx>
14 #ifndef _Standard_TypeMismatch_HeaderFile
15 #include <Standard_TypeMismatch.hxx>
18 SALOMEDS_TableOfIntegerAttribute::~SALOMEDS_TableOfIntegerAttribute() {}
22 Standard_EXPORT Handle_Standard_Type& SALOMEDS_TableOfIntegerAttribute_Type_()
25 static Handle_Standard_Type aType1 = STANDARD_TYPE(TDF_Attribute);
26 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDF_Attribute);
27 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
28 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
29 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
30 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
33 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
34 static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_TableOfIntegerAttribute",
35 sizeof(SALOMEDS_TableOfIntegerAttribute),
37 (Standard_Address)_Ancestors,
38 (Standard_Address)NULL);
45 // allow safe downcasting
47 const Handle(SALOMEDS_TableOfIntegerAttribute) Handle(SALOMEDS_TableOfIntegerAttribute)::DownCast(const Handle(Standard_Transient)& AnObject)
49 Handle(SALOMEDS_TableOfIntegerAttribute) _anOtherObject;
51 if (!AnObject.IsNull()) {
52 if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_TableOfIntegerAttribute))) {
53 _anOtherObject = Handle(SALOMEDS_TableOfIntegerAttribute)((Handle(SALOMEDS_TableOfIntegerAttribute)&)AnObject);
57 return _anOtherObject ;
59 const Handle(Standard_Type)& SALOMEDS_TableOfIntegerAttribute::DynamicType() const
61 return STANDARD_TYPE(SALOMEDS_TableOfIntegerAttribute) ;
63 Standard_Boolean SALOMEDS_TableOfIntegerAttribute::IsKind(const Handle(Standard_Type)& AType) const
65 return (STANDARD_TYPE(SALOMEDS_TableOfIntegerAttribute) == AType || TDF_Attribute::IsKind(AType));
67 Handle_SALOMEDS_TableOfIntegerAttribute::~Handle_SALOMEDS_TableOfIntegerAttribute() {}