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