Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_OpenedAttribute.hxx
1 //  File      : SALOMEDS_OpenedAttribute.hxx
2 //  Created   : Tue Jul 09 16:45:33 2002
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef _SALOMEDS_OpenedAttribute_HeaderFile
11 #define _SALOMEDS_OpenedAttribute_HeaderFile
12
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
15 #endif
16 #ifndef _Handle_SALOMEDS_OpenedAttribute_HeaderFile
17 #include <Handle_SALOMEDS_OpenedAttribute.hxx>
18 #endif
19
20 #ifndef _TDataStd_Integer_HeaderFile
21 #include <TDataStd_Integer.hxx>
22 #endif
23 #ifndef _Standard_Integer_HeaderFile
24 #include <Standard_Integer.hxx>
25 #endif
26 #ifndef _Handle_TDF_Attribute_HeaderFile
27 #include <Handle_TDF_Attribute.hxx>
28 #endif
29 #ifndef _Handle_TDF_RelocationTable_HeaderFile
30 #include <Handle_TDF_RelocationTable.hxx>
31 #endif
32 class Standard_GUID;
33 class TDF_Label;
34 class TDF_Attribute;
35 class TDF_RelocationTable;
36
37
38 class SALOMEDS_OpenedAttribute : public TDataStd_Integer {
39
40 public:
41
42     inline void* operator new(size_t,void* anAddress) 
43       {
44         return anAddress;
45       }
46     inline void* operator new(size_t size) 
47       { 
48         return Standard::Allocate(size); 
49       }
50     inline void  operator delete(void *anAddress) 
51       { 
52         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
53       }
54 //    inline void  operator delete(void *anAddress, size_t size) 
55 //      { 
56 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
57 //      }
58  // Methods PUBLIC
59  // 
60 Standard_EXPORT static const Standard_GUID& GetID() ;
61 Standard_EXPORT static  Handle_SALOMEDS_OpenedAttribute Set(const TDF_Label& label,const Standard_Integer value) ;
62 Standard_EXPORT SALOMEDS_OpenedAttribute();
63 Standard_EXPORT  const Standard_GUID& ID() const;
64 Standard_EXPORT   void Restore(const Handle(TDF_Attribute)& with) ;
65 Standard_EXPORT   Handle_TDF_Attribute NewEmpty() const;
66 Standard_EXPORT   void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
67 Standard_EXPORT ~SALOMEDS_OpenedAttribute();
68
69
70
71
72  // Type management
73  //
74  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_OpenedAttribute_Type_();
75  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
76  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
77
78 protected:
79
80  // Methods PROTECTED
81  // 
82
83
84  // Fields PROTECTED
85  //
86
87
88 private: 
89
90  // Methods PRIVATE
91  // 
92
93
94  // Fields PRIVATE
95  //
96
97
98 };
99
100
101
102
103
104 // other inline functions and methods (like "C++: function call" methods)
105 //
106
107
108 #endif