Back to home page

EIC code displayed by LXR

 
 

    


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 // 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 #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