Salome HOME
PR: binaries generation : remove duplicate rules
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_TargetAttribute.hxx
1 //  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : SALOMEDS_TargetAttribute.hxx
25 //  Author : Yves FRICAUD
26 //  Module : SALOME
27 //  $Header$
28
29 #ifndef _SALOMEDS_TargetAttribute_HeaderFile
30 #define _SALOMEDS_TargetAttribute_HeaderFile
31
32 #ifndef _Standard_HeaderFile
33 #include <Standard.hxx>
34 #endif
35 #ifndef _Handle_SALOMEDS_TargetAttribute_HeaderFile
36 #include <Handle_SALOMEDS_TargetAttribute.hxx>
37 #endif
38
39 #include <TDataStd_Relation.hxx>
40 #ifndef _Handle_TDF_Attribute_HeaderFile
41 #include <Handle_TDF_Attribute.hxx>
42 #endif
43 #ifndef _Handle_TDF_RelocationTable_HeaderFile
44 #include <Handle_TDF_RelocationTable.hxx>
45 #endif
46 #ifndef _TDF_LabelList_HeaderFile
47 #include <TDF_LabelList.hxx>
48 #endif
49 #ifndef _Handle_TDF_Reference_HeaderFile
50 #include <Handle_TDF_Reference.hxx>
51 #endif
52 class Standard_GUID;
53 class TDF_Label;
54 class TDF_Attribute;
55 class TDF_RelocationTable;
56
57
58 class SALOMEDS_TargetAttribute : public TDataStd_Relation {
59
60 public:
61
62     inline void* operator new(size_t,void* anAddress) 
63       {
64         return anAddress;
65       }
66     inline void* operator new(size_t size) 
67       { 
68         return Standard::Allocate(size); 
69       }
70     inline void  operator delete(void *anAddress) 
71       { 
72         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
73       }
74 //    inline void  operator delete(void *anAddress, size_t size) 
75 //      { 
76 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
77 //      }
78  // Methods PUBLIC
79  // 
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;
87
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;
91
92 Standard_EXPORT ~SALOMEDS_TargetAttribute();
93
94
95
96
97  // Type management
98  //
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;
102
103 protected:
104
105  // Methods PROTECTED
106  // 
107
108
109  // Fields PROTECTED
110  //
111
112
113 private: 
114
115  // Methods PRIVATE
116  // 
117
118
119  // Fields PRIVATE
120  //
121
122
123 };
124
125
126
127
128
129 // other inline functions and methods (like "C++: function call" methods)
130 //
131
132
133 #endif