Salome HOME
6468c71d9e73bcfd89c5c92a5cb6705de154d974
[modules/yacs.git] / src / SALOMEDSImpl / SALOMEDSImpl_AttributeReference.hxx
1 //  File   : SALOMEDSImpl_AttributeIOR.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #ifndef _SALOMEDSImpl_AttributeReference_HeaderFile
6 #define _SALOMEDSImpl_AttributeReference_HeaderFile
7
8 #include <Standard_DefineHandle.hxx>
9 #include <TDF_Attribute.hxx>
10 #include <TDF_Label.hxx>       
11 #include <TCollection_AsciiString.hxx> 
12 #include "SALOMEDSImpl_GenericAttribute.hxx"
13
14 class Standard_GUID;
15 class Handle(TDF_Attribute);
16 class Handle(TDF_RelocationTable);
17
18
19 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_AttributeReference, SALOMEDSImpl_GenericAttribute )
20
21
22
23 class SALOMEDSImpl_AttributeReference : public SALOMEDSImpl_GenericAttribute 
24 {
25 private:
26  TDF_Label myLabel;
27
28 public:
29
30 Standard_EXPORT static const Standard_GUID& GetID() ;
31
32 Standard_EXPORT SALOMEDSImpl_AttributeReference():SALOMEDSImpl_GenericAttribute("AttributeReference") {}
33 Standard_EXPORT static Handle(SALOMEDSImpl_AttributeReference) Set(const TDF_Label& theLabel, const TDF_Label& theRefLabel);
34 Standard_EXPORT void Set(const TDF_Label& theLabel);
35 Standard_EXPORT TDF_Label Get() const { return myLabel; }
36 Standard_EXPORT virtual TCollection_AsciiString Save();
37 Standard_EXPORT virtual void Load(const TCollection_AsciiString& theValue);
38
39 Standard_EXPORT  const Standard_GUID& ID() const;
40 Standard_EXPORT  void Restore(const Handle(TDF_Attribute)& with) ;
41 Standard_EXPORT  Handle_TDF_Attribute NewEmpty() const;
42 Standard_EXPORT  void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
43
44 Standard_EXPORT ~SALOMEDSImpl_AttributeReference() {}
45
46 public:
47   DEFINE_STANDARD_RTTI( SALOMEDSImpl_AttributeReference )
48 };
49
50 #endif