1 // File : SALOMEDSImpl_AttributeIOR.hxx
2 // Author : Sergey RUIN
5 #ifndef _SALOMEDSImpl_AttributeComment_HeaderFile
6 #define _SALOMEDSImpl_AttributeComment_HeaderFile
8 #include <Standard_DefineHandle.hxx>
9 #include <TDF_Attribute.hxx>
10 #include <TCollection_AsciiString.hxx>
11 #include <TCollection_ExtendedString.hxx>
12 #include <TDF_Label.hxx>
13 #include <Standard_GUID.hxx>
14 #include "SALOMEDSImpl_GenericAttribute.hxx"
16 class Handle(TDF_Attribute);
17 class Handle(TDF_RelocationTable);
19 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_AttributeComment, SALOMEDSImpl_GenericAttribute )
21 class SALOMEDSImpl_AttributeComment : public SALOMEDSImpl_GenericAttribute
25 TCollection_ExtendedString myString;
29 Standard_EXPORT static const Standard_GUID& GetID() ;
31 Standard_EXPORT SALOMEDSImpl_AttributeComment() :SALOMEDSImpl_GenericAttribute("AttributeComment") {}
33 Standard_EXPORT static Handle(SALOMEDSImpl_AttributeComment) Set(const TDF_Label& L, const TCollection_ExtendedString& Val);
34 Standard_EXPORT void SetValue (const TCollection_ExtendedString& S);
35 Standard_EXPORT TCollection_ExtendedString Value() const { return myString; }
37 Standard_EXPORT virtual TCollection_AsciiString Save() { return myString; }
38 Standard_EXPORT virtual void Load(const TCollection_AsciiString& theValue) { myString = theValue; }
40 Standard_EXPORT const Standard_GUID& ID() const;
41 Standard_EXPORT void Restore(const Handle(TDF_Attribute)& with) ;
42 Standard_EXPORT Handle_TDF_Attribute NewEmpty() const;
43 Standard_EXPORT void Paste(const Handle(TDF_Attribute)& into,const Handle(TDF_RelocationTable)& RT) const;
45 Standard_EXPORT ~SALOMEDSImpl_AttributeComment() {}
48 DEFINE_STANDARD_RTTI( SALOMEDSImpl_AttributeComment )