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