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