Salome HOME
NRI : Temporary modification for reading catalog of modules.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_TargetAttribute.hxx
1 //  File      : 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 _SALOMEDS_TargetAttribute_HeaderFile
11 #define _SALOMEDS_TargetAttribute_HeaderFile
12
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
15 #endif
16 #ifndef _Handle_SALOMEDS_TargetAttribute_HeaderFile
17 #include <Handle_SALOMEDS_TargetAttribute.hxx>
18 #endif
19
20 #include <TDataStd_Relation.hxx>
21 #ifndef _Handle_TDF_Attribute_HeaderFile
22 #include <Handle_TDF_Attribute.hxx>
23 #endif
24 #ifndef _Handle_TDF_RelocationTable_HeaderFile
25 #include <Handle_TDF_RelocationTable.hxx>
26 #endif
27 #ifndef _TDF_LabelList_HeaderFile
28 #include <TDF_LabelList.hxx>
29 #endif
30 #ifndef _Handle_TDF_Reference_HeaderFile
31 #include <Handle_TDF_Reference.hxx>
32 #endif
33 class Standard_GUID;
34 class TDF_Label;
35 class TDF_Attribute;
36 class TDF_RelocationTable;
37
38
39 class SALOMEDS_TargetAttribute : public TDataStd_Relation {
40
41 public:
42
43     inline void* operator new(size_t,void* anAddress) 
44       {
45         return anAddress;
46       }
47     inline void* operator new(size_t size) 
48       { 
49         return Standard::Allocate(size); 
50       }
51     inline void  operator delete(void *anAddress) 
52       { 
53         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
54       }
55 //    inline void  operator delete(void *anAddress, size_t size) 
56 //      { 
57 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
58 //      }
59  // Methods PUBLIC
60  // 
61 Standard_EXPORT static const Standard_GUID& GetID() ;
62 Standard_EXPORT static  Handle_SALOMEDS_TargetAttribute Set(const TDF_Label& label) ;
63 Standard_EXPORT SALOMEDS_TargetAttribute();
64 Standard_EXPORT void SALOMEDS_TargetAttribute::Append(TDF_Label& theReferencedObject);
65 Standard_EXPORT void SALOMEDS_TargetAttribute::Get(TDF_LabelList& theReferencedObjects);
66 Standard_EXPORT void SALOMEDS_TargetAttribute::Remove(TDF_Label& theReferencedObject);
67 Standard_EXPORT  const Standard_GUID& ID() const;
68
69 //  Standard_EXPORT   void Restore(const Handle(TDF_Attribute)& with) ;
70 //  Standard_EXPORT   Handle_TDF_Attribute NewEmpty() const;
71 //  Standard_EXPORT   void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
72
73 Standard_EXPORT ~SALOMEDS_TargetAttribute();
74
75
76
77
78  // Type management
79  //
80  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_TargetAttribute_Type_();
81  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
82  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
83
84 protected:
85
86  // Methods PROTECTED
87  // 
88
89
90  // Fields PROTECTED
91  //
92
93
94 private: 
95
96  // Methods PRIVATE
97  // 
98
99
100  // Fields PRIVATE
101  //
102
103
104 };
105
106
107
108
109
110 // other inline functions and methods (like "C++: function call" methods)
111 //
112
113
114 #endif