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_Data_HeaderFile
0016 #define _StdLPersistent_Data_HeaderFile
0017 
0018 #include <StdLPersistent_HArray1.hxx>
0019 
0020 class TDF_Data;
0021 
0022 
0023 class StdLPersistent_Data : public StdObjMgt_Persistent
0024 {
0025 public:
0026   //! Empty constructor.
0027   StdLPersistent_Data()
0028   : myVersion(0)
0029   {
0030   }
0031   //! Read persistent data from a file.
0032   Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData);
0033   //! Write persistent data to a file.
0034   Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const;
0035   //! Gets persistent child objects
0036   virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
0037   {
0038     theChildren.Append(myLabels);
0039     theChildren.Append(myAttributes);
0040   }
0041   //! Returns persistent type name
0042   virtual Standard_CString PName() const
0043     { return "PDF_Data"; }
0044 
0045   //! Import transient data from the persistent data.
0046   Standard_EXPORT Handle(TDF_Data) Import() const;
0047 
0048 private:
0049   class Parser;
0050 
0051 private:
0052   Standard_Integer                           myVersion;
0053   Handle(StdLPersistent_HArray1::Integer)    myLabels;
0054   Handle(StdLPersistent_HArray1::Persistent) myAttributes;
0055 };
0056 
0057 #endif