File indexing completed on 2025-01-18 10:05:00
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _StdPersistent_TopoDS_HeaderFile
0016 #define _StdPersistent_TopoDS_HeaderFile
0017
0018 #include <StdObjMgt_SharedObject.hxx>
0019 #include <StdObjMgt_ReadData.hxx>
0020 #include <StdObjMgt_WriteData.hxx>
0021
0022 #include <TopoDS_TShape.hxx>
0023
0024
0025 class StdPersistent_TopoDS : protected StdObjMgt_SharedObject
0026 {
0027 protected:
0028 class pTShape : public Standard_Transient
0029 {
0030 friend class ShapePersistent_TopoDS;
0031
0032 DEFINE_STANDARD_RTTI_INLINE(pTShape, Standard_Transient)
0033
0034 public:
0035 pTShape() : myFlags(0) {}
0036 inline void Read (StdObjMgt_ReadData& theReadData)
0037 { theReadData >> myShapes >> myFlags; }
0038 inline void Write (StdObjMgt_WriteData& theWriteData) const
0039 { theWriteData << myShapes << myFlags; }
0040 inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
0041 { theChildren.Append(myShapes); }
0042 inline Standard_CString PName() const
0043 { return "PTopoDS_TShape"; }
0044
0045 protected:
0046 Handle(StdObjMgt_Persistent) myShapes;
0047 Standard_Integer myFlags;
0048 };
0049
0050 public:
0051 typedef IgnoreData<StdObjMgt_Persistent, pTShape, TopoDS_TShape> TShape;
0052 };
0053
0054 #endif