2 #ifndef _SALOMEDSImpl_AttributeExternalFileDef_HeaderFile
3 #define _SALOMEDSImpl_AttributeExternalFileDef_HeaderFile
5 #include <Standard_DefineHandle.hxx>
6 #include <TDF_Attribute.hxx>
7 #include <Standard_GUID.hxx>
8 #include <TDF_Label.hxx>
9 #include <TCollection_ExtendedString.hxx>
10 #include "SALOMEDSImpl_GenericAttribute.hxx"
12 class Handle(TDF_Attribute);
13 class Handle(TDF_RelocationTable);
16 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_AttributeExternalFileDef, SALOMEDSImpl_GenericAttribute )
18 class SALOMEDSImpl_AttributeExternalFileDef : public SALOMEDSImpl_GenericAttribute
22 TCollection_ExtendedString myString;
25 Standard_EXPORT static const Standard_GUID& GetID() ;
26 Standard_EXPORT static Handle_SALOMEDSImpl_AttributeExternalFileDef Set(const TDF_Label& label,
27 const TCollection_ExtendedString& Name);
28 Standard_EXPORT SALOMEDSImpl_AttributeExternalFileDef();
29 Standard_EXPORT void SetValue(const TCollection_ExtendedString& value);
30 Standard_EXPORT TCollection_ExtendedString Value() const { return myString; }
31 Standard_EXPORT const Standard_GUID& ID() const;
32 Standard_EXPORT void Restore(const Handle(TDF_Attribute)& with) ;
33 Standard_EXPORT Handle_TDF_Attribute NewEmpty() const;
34 Standard_EXPORT void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
35 Standard_EXPORT ~SALOMEDSImpl_AttributeExternalFileDef() {}
37 Standard_EXPORT virtual TCollection_AsciiString Save() { return myString; }
38 Standard_EXPORT virtual void Load(const TCollection_AsciiString& theValue) { myString = theValue; }
41 DEFINE_STANDARD_RTTI( SALOMEDSImpl_AttributeExternalFileDef )