Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:59

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