Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:00

0001 // Copyright (c) 2015 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
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