Salome HOME
630d3f4715dcfb95fc228c3faa4206bc3044a700
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_StudyPropertiesAttribute.ixx
1 //  File      : SALOMEDS_StudyPropertiesAttribute.ixx
2 //  Created   : Tue Oct  8 10:13:30 2002
3 //  Author    : Yves FRICAUD
4 //  Project   : SALOME
5 //  Module    : SALOMEDS
6 //  Copyright : Open CASCADE 2001
7 //  $Header$
8
9 #include <SALOMEDS_StudyPropertiesAttribute.jxx>
10
11 #ifndef _Standard_TypeMismatch_HeaderFile
12 #include <Standard_TypeMismatch.hxx>
13 #endif
14
15 SALOMEDS_StudyPropertiesAttribute::~SALOMEDS_StudyPropertiesAttribute() {}
16  
17
18
19 Standard_EXPORT Handle_Standard_Type& SALOMEDS_StudyPropertiesAttribute_Type_()
20 {
21
22     static Handle_Standard_Type aType1 = STANDARD_TYPE(TDF_Attribute);
23   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDF_Attribute);
24   static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
25   if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
26   static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
27   if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
28  
29
30   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
31   static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_StudyPropertiesAttribute",
32                                                          sizeof(SALOMEDS_StudyPropertiesAttribute),
33                                                          1,
34                                                          (Standard_Address)_Ancestors,
35                                                          (Standard_Address)NULL);
36
37   return _aType;
38 }
39
40
41 // DownCast method
42 //   allow safe downcasting
43 //
44 const Handle(SALOMEDS_StudyPropertiesAttribute) Handle(SALOMEDS_StudyPropertiesAttribute)::DownCast(const Handle(Standard_Transient)& AnObject) 
45 {
46   Handle(SALOMEDS_StudyPropertiesAttribute) _anOtherObject;
47
48   if (!AnObject.IsNull()) {
49      if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_StudyPropertiesAttribute))) {
50        _anOtherObject = Handle(SALOMEDS_StudyPropertiesAttribute)((Handle(SALOMEDS_StudyPropertiesAttribute)&)AnObject);
51      }
52   }
53
54   return _anOtherObject ;
55 }
56 const Handle(Standard_Type)& SALOMEDS_StudyPropertiesAttribute::DynamicType() const 
57
58   return STANDARD_TYPE(SALOMEDS_StudyPropertiesAttribute) ; 
59 }
60 Standard_Boolean SALOMEDS_StudyPropertiesAttribute::IsKind(const Handle(Standard_Type)& AType) const 
61
62   return (STANDARD_TYPE(SALOMEDS_StudyPropertiesAttribute) == AType || TDF_Attribute::IsKind(AType)); 
63 }
64 Handle_SALOMEDS_StudyPropertiesAttribute::~Handle_SALOMEDS_StudyPropertiesAttribute() {}
65