Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_TextColorAttribute.ixx
1 //  File      : SALOMEDS_TextColorAttribute.ixx
2 //  Created   : Wed Jul 10 16:42:10 2002
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #include "SALOMEDS_TextColorAttribute.jxx"
11
12 #ifndef _Standard_TypeMismatch_HeaderFile
13 #include <Standard_TypeMismatch.hxx>
14 #endif
15
16 SALOMEDS_TextColorAttribute::~SALOMEDS_TextColorAttribute() {}
17  
18
19
20 Standard_EXPORT Handle_Standard_Type& SALOMEDS_TextColorAttribute_Type_()
21 {
22
23     static Handle_Standard_Type aType1 = STANDARD_TYPE(TDataStd_RealArray);
24   if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TDataStd_RealArray);
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);
31  
32
33   static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,aType4,NULL};
34   static Handle_Standard_Type _aType = new Standard_Type("SALOMEDS_TextColorAttribute",
35                                                          sizeof(SALOMEDS_TextColorAttribute),
36                                                          1,
37                                                          (Standard_Address)_Ancestors,
38                                                          (Standard_Address)NULL);
39
40   return _aType;
41 }
42
43
44 // DownCast method
45 //   allow safe downcasting
46 //
47 const Handle(SALOMEDS_TextColorAttribute) Handle(SALOMEDS_TextColorAttribute)::DownCast(const Handle(Standard_Transient)& AnObject) 
48 {
49   Handle(SALOMEDS_TextColorAttribute) _anOtherObject;
50
51   if (!AnObject.IsNull()) {
52      if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_TextColorAttribute))) {
53        _anOtherObject = Handle(SALOMEDS_TextColorAttribute)((Handle(SALOMEDS_TextColorAttribute)&)AnObject);
54      }
55   }
56
57   return _anOtherObject ;
58 }
59 const Handle(Standard_Type)& SALOMEDS_TextColorAttribute::DynamicType() const 
60
61   return STANDARD_TYPE(SALOMEDS_TextColorAttribute) ; 
62 }
63 Standard_Boolean SALOMEDS_TextColorAttribute::IsKind(const Handle(Standard_Type)& AType) const 
64
65   return (STANDARD_TYPE(SALOMEDS_TextColorAttribute) == AType || TDataStd_RealArray::IsKind(AType)); 
66 }
67 Handle_SALOMEDS_TextColorAttribute::~Handle_SALOMEDS_TextColorAttribute() {}
68