Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_PersRefAttribute.hxx
1 //  File      : SALOMEDS_PersRefAttribute.hxx
2 //  Created   : Thu Nov 29 21:01:34 2001
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2001
8 //  $Header$
9
10 #ifndef _SALOMEDS_PersRefAttribute_HeaderFile
11 #define _SALOMEDS_PersRefAttribute_HeaderFile
12
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
15 #endif
16 #ifndef _Handle_SALOMEDS_PersRefAttribute_HeaderFile
17 #include <Handle_SALOMEDS_PersRefAttribute.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 class Standard_GUID;
30 class TDF_Label;
31 class TCollection_ExtendedString;
32 class TDF_Attribute;
33 class TDF_RelocationTable;
34
35
36 class SALOMEDS_PersRefAttribute : public TDataStd_Comment {
37
38 public:
39
40     inline void* operator new(size_t,void* anAddress) 
41       {
42         return anAddress;
43       }
44     inline void* operator new(size_t size) 
45       { 
46         return Standard::Allocate(size); 
47       }
48     inline void  operator delete(void *anAddress) 
49       { 
50         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
51       }
52 //    inline void  operator delete(void *anAddress, size_t size) 
53 //      { 
54 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
55 //      }
56  // Methods PUBLIC
57  // 
58 Standard_EXPORT static const Standard_GUID& GetID() ;
59 Standard_EXPORT static  Handle_SALOMEDS_PersRefAttribute Set(const TDF_Label& label,const TCollection_ExtendedString& string) ;
60 Standard_EXPORT SALOMEDS_PersRefAttribute();
61 Standard_EXPORT  const Standard_GUID& ID() const;
62 Standard_EXPORT   void Restore(const Handle(TDF_Attribute)& with) ;
63 Standard_EXPORT   Handle_TDF_Attribute NewEmpty() const;
64 Standard_EXPORT   void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
65 Standard_EXPORT ~SALOMEDS_PersRefAttribute();
66
67
68
69
70  // Type management
71  //
72  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_PersRefAttribute_Type_();
73  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
74  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
75
76 protected:
77
78  // Methods PROTECTED
79  // 
80
81
82  // Fields PROTECTED
83  //
84
85
86 private: 
87
88  // Methods PRIVATE
89  // 
90
91
92  // Fields PRIVATE
93  //
94
95
96 };
97
98
99
100
101
102 // other inline functions and methods (like "C++: function call" methods)
103 //
104
105
106 #endif