File indexing completed on 2025-01-18 10:05:34
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _XCAFDoc_NoteComment_HeaderFile
0015 #define _XCAFDoc_NoteComment_HeaderFile
0016
0017 #include <XCAFDoc_Note.hxx>
0018
0019
0020
0021 class XCAFDoc_NoteComment : public XCAFDoc_Note
0022 {
0023 public:
0024
0025 DEFINE_STANDARD_RTTIEXT(XCAFDoc_NoteComment, XCAFDoc_Note)
0026
0027
0028 Standard_EXPORT static const Standard_GUID& GetID();
0029
0030
0031 Standard_EXPORT static Handle(XCAFDoc_NoteComment) Get(const TDF_Label& theLabel);
0032
0033
0034
0035
0036
0037
0038 Standard_EXPORT static Handle(XCAFDoc_NoteComment) Set(const TDF_Label& theLabel,
0039 const TCollection_ExtendedString& theUserName,
0040 const TCollection_ExtendedString& theTimeStamp,
0041 const TCollection_ExtendedString& theComment);
0042
0043
0044 Standard_EXPORT XCAFDoc_NoteComment();
0045
0046
0047 Standard_EXPORT void Set(const TCollection_ExtendedString& theComment);
0048
0049
0050 const TCollection_ExtendedString& Comment() const { return myComment; }
0051
0052 public:
0053
0054
0055 Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
0056 Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
0057 Standard_EXPORT void Restore(const Handle(TDF_Attribute)& theAttrFrom) Standard_OVERRIDE;
0058 Standard_EXPORT void Paste(const Handle(TDF_Attribute)& theAttrInto,
0059 const Handle(TDF_RelocationTable)& theRT) const Standard_OVERRIDE;
0060 Standard_EXPORT Standard_OStream& Dump(Standard_OStream& theOS) const Standard_OVERRIDE;
0061
0062 protected:
0063
0064 TCollection_ExtendedString myComment;
0065
0066 };
0067
0068 DEFINE_STANDARD_HANDLE(XCAFDoc_NoteComment, XCAFDoc_Note)
0069
0070 #endif