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