1 // File : SALOMEDS_TargetAttribute.hxx
2 // Created : Fri Aug 16 10:20:05 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
10 #ifndef _SALOMEDS_TargetAttribute_HeaderFile
11 #define _SALOMEDS_TargetAttribute_HeaderFile
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
16 #ifndef _Handle_SALOMEDS_TargetAttribute_HeaderFile
17 #include <Handle_SALOMEDS_TargetAttribute.hxx>
20 #include <TDataStd_Relation.hxx>
21 #ifndef _Handle_TDF_Attribute_HeaderFile
22 #include <Handle_TDF_Attribute.hxx>
24 #ifndef _Handle_TDF_RelocationTable_HeaderFile
25 #include <Handle_TDF_RelocationTable.hxx>
27 #ifndef _TDF_LabelList_HeaderFile
28 #include <TDF_LabelList.hxx>
30 #ifndef _Handle_TDF_Reference_HeaderFile
31 #include <Handle_TDF_Reference.hxx>
36 class TDF_RelocationTable;
39 class SALOMEDS_TargetAttribute : public TDataStd_Relation {
43 inline void* operator new(size_t,void* anAddress)
47 inline void* operator new(size_t size)
49 return Standard::Allocate(size);
51 inline void operator delete(void *anAddress)
53 if (anAddress) Standard::Free((Standard_Address&)anAddress);
55 // inline void operator delete(void *anAddress, size_t size)
57 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
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;
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;
73 Standard_EXPORT ~SALOMEDS_TargetAttribute();
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;
110 // other inline functions and methods (like "C++: function call" methods)