1 // File : SALOMEDS_SequenceOfRealAttribute.ixx
2 // Created : Fri Jul 05 13:00:55 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
11 #include "SALOMEDS_SequenceOfRealAttribute.jxx"
13 #ifndef _Standard_TypeMismatch_HeaderFile
14 #include <Standard_TypeMismatch.hxx>
17 SALOMEDS_SequenceOfRealAttribute::~SALOMEDS_SequenceOfRealAttribute() {}
21 Standard_EXPORT Handle_Standard_Type& SALOMEDS_SequenceOfRealAttribute_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_SequenceOfRealAttribute",
34 sizeof(SALOMEDS_SequenceOfRealAttribute),
36 (Standard_Address)_Ancestors,
37 (Standard_Address)NULL);
44 // allow safe downcasting
46 const Handle(SALOMEDS_SequenceOfRealAttribute) Handle(SALOMEDS_SequenceOfRealAttribute)::DownCast(const Handle(Standard_Transient)& AnObject)
48 Handle(SALOMEDS_SequenceOfRealAttribute) _anOtherObject;
50 if (!AnObject.IsNull()) {
51 if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_SequenceOfRealAttribute))) {
52 _anOtherObject = Handle(SALOMEDS_SequenceOfRealAttribute)((Handle(SALOMEDS_SequenceOfRealAttribute)&)AnObject);
56 return _anOtherObject ;
58 const Handle(Standard_Type)& SALOMEDS_SequenceOfRealAttribute::DynamicType() const
60 return STANDARD_TYPE(SALOMEDS_SequenceOfRealAttribute) ;
62 Standard_Boolean SALOMEDS_SequenceOfRealAttribute::IsKind(const Handle(Standard_Type)& AType) const
64 return (STANDARD_TYPE(SALOMEDS_SequenceOfRealAttribute) == AType || TDF_Attribute::IsKind(AType));
66 Handle_SALOMEDS_SequenceOfRealAttribute::~Handle_SALOMEDS_SequenceOfRealAttribute() {}