Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_TableOfRealAttribute.ixx
1 //  File      : SALOMEDS_TableOfRealAttribute.ixx
2 //  Created   : Tue Oct  8 10:13:30 2002
3 //  Author    : Michael Ponikarov
4 //  Project   : SALOME
5 //  Module    : SALOMEDS
6 //  Copyright : Open CASCADE
7 //  $Header$
8
9 #include <SALOMEDS_TableOfRealAttribute.jxx>
10
11 #ifndef _Standard_TypeMismatch_HeaderFile
12 #include <Standard_TypeMismatch.hxx>
13 #endif
14
15 SALOMEDS_TableOfRealAttribute::~SALOMEDS_TableOfRealAttribute() {}
16  
17
18
19 Standard_EXPORT Handle_Standard_Type& SALOMEDS_TableOfRealAttribute_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_TableOfRealAttribute",
32                                                          sizeof(SALOMEDS_TableOfRealAttribute),
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_TableOfRealAttribute) Handle(SALOMEDS_TableOfRealAttribute)::DownCast(const Handle(Standard_Transient)& AnObject) 
45 {
46   Handle(SALOMEDS_TableOfRealAttribute) _anOtherObject;
47
48   if (!AnObject.IsNull()) {
49      if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_TableOfRealAttribute))) {
50        _anOtherObject = Handle(SALOMEDS_TableOfRealAttribute)((Handle(SALOMEDS_TableOfRealAttribute)&)AnObject);
51      }
52   }
53
54   return _anOtherObject ;
55 }
56 const Handle(Standard_Type)& SALOMEDS_TableOfRealAttribute::DynamicType() const 
57
58   return STANDARD_TYPE(SALOMEDS_TableOfRealAttribute) ; 
59 }
60 Standard_Boolean SALOMEDS_TableOfRealAttribute::IsKind(const Handle(Standard_Type)& AType) const 
61
62   return (STANDARD_TYPE(SALOMEDS_TableOfRealAttribute) == AType || TDF_Attribute::IsKind(AType)); 
63 }
64 Handle_SALOMEDS_TableOfRealAttribute::~Handle_SALOMEDS_TableOfRealAttribute() {}
65