Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:17:47

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 _StdLPersistent_Document_HeaderFile
0015 #define _StdLPersistent_Document_HeaderFile
0016 
0017 #include <StdObjMgt_Persistent.hxx>
0018 
0019 class TDocStd_Document;
0020 class StdLPersistent_Data;
0021 
0022 class StdLPersistent_Document : public StdObjMgt_Persistent
0023 {
0024 public:
0025   //! Read persistent data from a file.
0026   Standard_EXPORT void Read(StdObjMgt_ReadData& theReadData) override;
0027   //! Read persistent data from a file.
0028   Standard_EXPORT void Write(StdObjMgt_WriteData& theWriteData) const override;
0029   //! Gets persistent child objects
0030   Standard_EXPORT void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const override;
0031 
0032   //! Returns persistent type name
0033   const char* PName() const override { return "PDocStd_Document"; }
0034 
0035   //! Import transient document from the persistent data.
0036   Standard_EXPORT void ImportDocument(
0037     const occ::handle<TDocStd_Document>& theDocument) const override;
0038 
0039 private:
0040   occ::handle<StdLPersistent_Data> myData;
0041 };
0042 
0043 #endif