Salome HOME
Update version to 3.2.0a1
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_TableOfStringAttribute.ixx
1 //  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : SALOMEDS_TableOfStringAttribute.ixx
8 //  Author : Sergey Ruin
9 //  Module : SALOME
10
11 #include <SALOMEDS_TableOfStringAttribute.jxx>
12
13 #ifndef _Standard_TypeMismatch_HeaderFile
14 #include <Standard_TypeMismatch.hxx>
15 #endif
16
17 SALOMEDS_TableOfStringAttribute::~SALOMEDS_TableOfStringAttribute() {}
18  
19
20
21 Standard_EXPORT Handle_Standard_Type& SALOMEDS_TableOfStringAttribute_Type_()
22 {
23
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);
30  
31
32   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
33   static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_TableOfStringAttribute",
34                                                          sizeof(SALOMEDS_TableOfStringAttribute),
35                                                          1,
36                                                          (Standard_Address)_Ancestors,
37                                                          (Standard_Address)NULL);
38
39   return _aType;
40 }
41
42
43 // DownCast method
44 //   allow safe downcasting
45 //
46 const Handle(SALOMEDS_TableOfStringAttribute) Handle(SALOMEDS_TableOfStringAttribute)::DownCast(const Handle(Standard_Transient)& AnObject) 
47 {
48   Handle(SALOMEDS_TableOfStringAttribute) _anOtherObject;
49
50   if (!AnObject.IsNull()) {
51      if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_TableOfStringAttribute))) {
52        _anOtherObject = Handle(SALOMEDS_TableOfStringAttribute)((Handle(SALOMEDS_TableOfStringAttribute)&)AnObject);
53      }
54   }
55
56   return _anOtherObject ;
57 }
58 const Handle(Standard_Type)& SALOMEDS_TableOfStringAttribute::DynamicType() const 
59
60   return STANDARD_TYPE(SALOMEDS_TableOfStringAttribute) ; 
61 }
62 Standard_Boolean SALOMEDS_TableOfStringAttribute::IsKind(const Handle(Standard_Type)& AType) const 
63
64   return (STANDARD_TYPE(SALOMEDS_TableOfStringAttribute) == AType || TDF_Attribute::IsKind(AType)); 
65 }
66 Handle_SALOMEDS_TableOfStringAttribute::~Handle_SALOMEDS_TableOfStringAttribute() {}
67