File indexing completed on 2026-09-26 09:04:39
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _StdLPersistent_XLink_HeaderFile
0015 #define _StdLPersistent_XLink_HeaderFile
0016
0017 #include <StdObjMgt_Attribute.hxx>
0018 #include <StdLPersistent_HString.hxx>
0019
0020 #include <TDocStd_XLink.hxx>
0021
0022 class StdLPersistent_XLink : public StdObjMgt_Attribute<TDocStd_XLink>
0023 {
0024 public:
0025
0026 inline void Read(StdObjMgt_ReadData& theReadData) { theReadData >> myDocEntry >> myLabEntry; }
0027
0028
0029 inline void Write(StdObjMgt_WriteData& theWriteData) const
0030 {
0031 theWriteData << myDocEntry << myLabEntry;
0032 }
0033
0034
0035 inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
0036 {
0037 theChildren.Append(myDocEntry);
0038 theChildren.Append(myLabEntry);
0039 }
0040
0041
0042 inline const char* PName() const { return "PDocStd_XLink"; }
0043
0044
0045 void Import(const occ::handle<TDocStd_XLink>& theAttribute) const
0046 {
0047 if (myDocEntry)
0048 theAttribute->DocumentEntry(myDocEntry->Value()->String());
0049
0050 if (myLabEntry)
0051 theAttribute->LabelEntry(myLabEntry->Value()->String());
0052 }
0053
0054 private:
0055 Handle(StdLPersistent_HString::Ascii) myDocEntry;
0056 Handle(StdLPersistent_HString::Ascii) myLabEntry;
0057 };
0058
0059 #endif