1 // File : SALOMEDSImpl_StudyHandle.hxx
2 // Author : Sergey RUIN
5 #ifndef SALOMEDSImpl_StudyHandle_HeaderFile
6 #define SALOMEDSImpl_StudyHandle_HeaderFile
8 #include <Standard_DefineHandle.hxx>
9 #include <TDF_Attribute.hxx>
10 #include <TDF_Label.hxx>
13 class Handle(TDF_Attribute);
14 class Handle(TDF_RelocationTable);
17 Class : SALOMEDSImpl_StudyHandle
18 Description : PRIVATE: This class is intended for storing of the study handle
21 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_StudyHandle, TDF_Attribute )
23 #include "SALOMEDSImpl_Study.hxx"
26 class Standard_EXPORT SALOMEDSImpl_StudyHandle : public TDF_Attribute
28 class SALOMEDSImpl_StudyHandle : public TDF_Attribute
33 Standard_EXPORT SALOMEDSImpl_StudyHandle();
34 Standard_EXPORT ~SALOMEDSImpl_StudyHandle() { myHandle.Nullify(); }
36 Standard_EXPORT static Handle(SALOMEDSImpl_StudyHandle) Set(const TDF_Label& theLabel, const Handle(SALOMEDSImpl_Study)& theStudy);
37 Standard_EXPORT static const Standard_GUID& GetID() ;
39 Standard_EXPORT void SetHandle(const Handle(SALOMEDSImpl_Study)& theStudy) { myHandle = theStudy; }
40 Standard_EXPORT Handle(SALOMEDSImpl_Study) GetHandle() { return myHandle; }
41 Standard_EXPORT const Standard_GUID& ID() const;
42 Standard_EXPORT void Restore( const Handle(TDF_Attribute)& theWith );
43 Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
44 Standard_EXPORT void Paste( const Handle(TDF_Attribute)& theInto,
45 const Handle(TDF_RelocationTable)& ) const;
48 Handle(SALOMEDSImpl_Study) myHandle;
51 DEFINE_STANDARD_RTTI( SALOMEDSImpl_StudyHandle )