]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.ixx
Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_SequenceOfRealAttribute.ixx
1 //  File      : SALOMEDS_SequenceOfRealAttribute.ixx
2 //  Created   : Fri Jul 05 13:00:55 2002
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10
11 #include "SALOMEDS_SequenceOfRealAttribute.jxx"
12
13 #ifndef _Standard_TypeMismatch_HeaderFile
14 #include <Standard_TypeMismatch.hxx>
15 #endif
16
17 SALOMEDS_SequenceOfRealAttribute::~SALOMEDS_SequenceOfRealAttribute() {}
18  
19
20
21 Standard_EXPORT Handle_Standard_Type& SALOMEDS_SequenceOfRealAttribute_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_SequenceOfRealAttribute",
34                                                          sizeof(SALOMEDS_SequenceOfRealAttribute),
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_SequenceOfRealAttribute) Handle(SALOMEDS_SequenceOfRealAttribute)::DownCast(const Handle(Standard_Transient)& AnObject) 
47 {
48   Handle(SALOMEDS_SequenceOfRealAttribute) _anOtherObject;
49
50   if (!AnObject.IsNull()) {
51      if (AnObject->IsKind(STANDARD_TYPE(SALOMEDS_SequenceOfRealAttribute))) {
52        _anOtherObject = Handle(SALOMEDS_SequenceOfRealAttribute)((Handle(SALOMEDS_SequenceOfRealAttribute)&)AnObject);
53      }
54   }
55
56   return _anOtherObject ;
57 }
58 const Handle(Standard_Type)& SALOMEDS_SequenceOfRealAttribute::DynamicType() const 
59
60   return STANDARD_TYPE(SALOMEDS_SequenceOfRealAttribute) ; 
61 }
62 Standard_Boolean SALOMEDS_SequenceOfRealAttribute::IsKind(const Handle(Standard_Type)& AType) const 
63
64   return (STANDARD_TYPE(SALOMEDS_SequenceOfRealAttribute) == AType || TDF_Attribute::IsKind(AType)); 
65 }
66 Handle_SALOMEDS_SequenceOfRealAttribute::~Handle_SALOMEDS_SequenceOfRealAttribute() {}
67