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