1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : SALOMEDS_TargetAttribute.hxx
25 // Author : Yves FRICAUD
29 #ifndef _SALOMEDS_TargetAttribute_HeaderFile
30 #define _SALOMEDS_TargetAttribute_HeaderFile
32 #ifndef _Standard_HeaderFile
33 #include <Standard.hxx>
35 #ifndef _Handle_SALOMEDS_TargetAttribute_HeaderFile
36 #include <Handle_SALOMEDS_TargetAttribute.hxx>
39 #include <TDataStd_Relation.hxx>
40 #ifndef _Handle_TDF_Attribute_HeaderFile
41 #include <Handle_TDF_Attribute.hxx>
43 #ifndef _Handle_TDF_RelocationTable_HeaderFile
44 #include <Handle_TDF_RelocationTable.hxx>
46 #ifndef _TDF_LabelList_HeaderFile
47 #include <TDF_LabelList.hxx>
49 #ifndef _Handle_TDF_Reference_HeaderFile
50 #include <Handle_TDF_Reference.hxx>
55 class TDF_RelocationTable;
58 class SALOMEDS_TargetAttribute : public TDataStd_Relation {
62 inline void* operator new(size_t,void* anAddress)
66 inline void* operator new(size_t size)
68 return Standard::Allocate(size);
70 inline void operator delete(void *anAddress)
72 if (anAddress) Standard::Free((Standard_Address&)anAddress);
74 // inline void operator delete(void *anAddress, size_t size)
76 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
80 Standard_EXPORT static const Standard_GUID& GetID() ;
81 Standard_EXPORT static Handle_SALOMEDS_TargetAttribute Set(const TDF_Label& label) ;
82 Standard_EXPORT SALOMEDS_TargetAttribute();
83 Standard_EXPORT void SALOMEDS_TargetAttribute::Append(TDF_Label& theReferencedObject);
84 Standard_EXPORT void SALOMEDS_TargetAttribute::Get(TDF_LabelList& theReferencedObjects);
85 Standard_EXPORT void SALOMEDS_TargetAttribute::Remove(TDF_Label& theReferencedObject);
86 Standard_EXPORT const Standard_GUID& ID() const;
88 // Standard_EXPORT void Restore(const Handle(TDF_Attribute)& with) ;
89 // Standard_EXPORT Handle_TDF_Attribute NewEmpty() const;
90 // Standard_EXPORT void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
92 Standard_EXPORT ~SALOMEDS_TargetAttribute();
99 Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_TargetAttribute_Type_();
100 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
101 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
129 // other inline functions and methods (like "C++: function call" methods)