Warning, file /include/opencascade/StdPersistent_TopoDS.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _StdPersistent_TopoDS_HeaderFile
0015 #define _StdPersistent_TopoDS_HeaderFile
0016
0017 #include <StdObjMgt_SharedObject.hxx>
0018 #include <StdObjMgt_ReadData.hxx>
0019 #include <StdObjMgt_WriteData.hxx>
0020
0021 #include <TopoDS_TShape.hxx>
0022
0023 class StdPersistent_TopoDS : protected StdObjMgt_SharedObject
0024 {
0025 protected:
0026 class pTShape : public Standard_Transient
0027 {
0028 friend class ShapePersistent_TopoDS;
0029
0030 DEFINE_STANDARD_RTTI_INLINE(pTShape, Standard_Transient)
0031
0032 public:
0033 pTShape()
0034 : myFlags(0)
0035 {
0036 }
0037
0038 inline void Read(StdObjMgt_ReadData& theReadData) { theReadData >> myShapes >> myFlags; }
0039
0040 inline void Write(StdObjMgt_WriteData& theWriteData) const
0041 {
0042 theWriteData << myShapes << myFlags;
0043 }
0044
0045 inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
0046 {
0047 theChildren.Append(myShapes);
0048 }
0049
0050 inline Standard_CString PName() const { return "PTopoDS_TShape"; }
0051
0052 protected:
0053 Handle(StdObjMgt_Persistent) myShapes;
0054 Standard_Integer myFlags;
0055 };
0056
0057 public:
0058 typedef IgnoreData<StdObjMgt_Persistent, pTShape, TopoDS_TShape> TShape;
0059 };
0060
0061 #endif