Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / SALOMEDS / Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx
1 //  File      : Handle_SALOMEDS_SequenceOfIntegerAttribute.hxx
2 //  Created   : Fri Jul 05 10:55:49 2002
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef _Handle_SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
11 #define _Handle_SALOMEDS_SequenceOfIntegerAttribute_HeaderFile
12
13 #ifndef _Standard_Macro_HeaderFile
14 #include <Standard_Macro.hxx>
15 #endif
16 #ifndef _Standard_HeaderFile
17 #include <Standard.hxx>
18 #endif
19
20 #ifndef _Handle_TDF_Attribute_HeaderFile
21 #include <Handle_TDF_Attribute.hxx>
22 #endif
23
24 class Standard_Transient;
25 class Handle_Standard_Type;
26 class Handle(TDF_Attribute);
27 class SALOMEDS_SequenceOfIntegerAttribute;
28 Standard_EXPORT Handle_Standard_Type& STANDARD_TYPE(SALOMEDS_SequenceOfIntegerAttribute);
29
30 class Handle(SALOMEDS_SequenceOfIntegerAttribute) : public Handle(TDF_Attribute) {
31   public:
32     void* operator new(size_t,void* anAddress) 
33       {
34         return anAddress;
35       }
36     void* operator new(size_t size) 
37       { 
38         return Standard::Allocate(size); 
39       }
40     void  operator delete(void *anAddress) 
41       { 
42         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
43       }
44     Handle(SALOMEDS_SequenceOfIntegerAttribute)():Handle(TDF_Attribute)() {} 
45     Handle(SALOMEDS_SequenceOfIntegerAttribute)(const Handle(SALOMEDS_SequenceOfIntegerAttribute)& aHandle) : Handle(TDF_Attribute)(aHandle) 
46      {
47      }
48
49     Handle(SALOMEDS_SequenceOfIntegerAttribute)(const SALOMEDS_SequenceOfIntegerAttribute* anItem) : Handle(TDF_Attribute)((TDF_Attribute *)anItem) 
50      {
51      }
52
53     Handle(SALOMEDS_SequenceOfIntegerAttribute)& operator=(const Handle(SALOMEDS_SequenceOfIntegerAttribute)& aHandle)
54      {
55       Assign(aHandle.Access());
56       return *this;
57      }
58
59     Handle(SALOMEDS_SequenceOfIntegerAttribute)& operator=(const SALOMEDS_SequenceOfIntegerAttribute* anItem)
60      {
61       Assign((Standard_Transient *)anItem);
62       return *this;
63      }
64
65     SALOMEDS_SequenceOfIntegerAttribute* operator->() 
66      {
67       return (SALOMEDS_SequenceOfIntegerAttribute *)ControlAccess();
68      }
69
70     SALOMEDS_SequenceOfIntegerAttribute* operator->() const 
71      {
72       return (SALOMEDS_SequenceOfIntegerAttribute *)ControlAccess();
73      }
74
75    Standard_EXPORT ~Handle(SALOMEDS_SequenceOfIntegerAttribute)();
76  
77    Standard_EXPORT static const Handle(SALOMEDS_SequenceOfIntegerAttribute) DownCast(const Handle(Standard_Transient)& AnObject);
78 };
79 #endif