1 // File : SALOMEDS_SequenceOfIntegerAttribute.ixx
2 // Created : Fri Jul 05 12:59:55 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
10 #include "SALOMEDS_SequenceOfIntegerAttribute.jxx"
12 #ifndef _Standard_TypeMismatch_HeaderFile
13 #include <Standard_TypeMismatch.hxx>
16 SALOMEDS_SequenceOfIntegerAttribute::~SALOMEDS_SequenceOfIntegerAttribute() {}
20 Standard_EXPORT Handle_Standard_Type& SALOMEDS_SequenceOfIntegerAttribute_Type_()
23 static Handle_Standard_Type aType1 = STANDARD_TYPE(TDF_Attribute);
24 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDF_Attribute);
25 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
26 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
27 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
28 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
31 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
32 static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_SequenceOfIntegerAttribute",
33 sizeof(SALOMEDS_SequenceOfIntegerAttribute),
35 (Standard_Address)_Ancestors,
36 (Standard_Address)NULL);
43 // allow safe downcasting
45 const Handle(SALOMEDS_SequenceOfIntegerAttribute) Handle(SALOMEDS_SequenceOfIntegerAttribute)::DownCast(const Handle(Standard_Transient)& AnObject)
47 Handle(SALOMEDS_SequenceOfIntegerAttribute) _anOtherObject;
49 if (!AnObject.IsNull()) {
50 if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_SequenceOfIntegerAttribute))) {
51 _anOtherObject = Handle(SALOMEDS_SequenceOfIntegerAttribute)((Handle(SALOMEDS_SequenceOfIntegerAttribute)&)AnObject);
55 return _anOtherObject ;
57 const Handle(Standard_Type)& SALOMEDS_SequenceOfIntegerAttribute::DynamicType() const
59 return STANDARD_TYPE(SALOMEDS_SequenceOfIntegerAttribute) ;
61 Standard_Boolean SALOMEDS_SequenceOfIntegerAttribute::IsKind(const Handle(Standard_Type)& AType) const
63 return (STANDARD_TYPE(SALOMEDS_SequenceOfIntegerAttribute) == AType || TDF_Attribute::IsKind(AType));
65 Handle_SALOMEDS_SequenceOfIntegerAttribute::~Handle_SALOMEDS_SequenceOfIntegerAttribute() {}