0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / StdLPersistent / StdLPersistent_Data.hxx
CommitLineData
7ed7467d 1// Copyright (c) 2015 OPEN CASCADE SAS
2//
3// This file is part of Open CASCADE Technology software library.
4//
5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
10//
11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
13
14
ff205346 15#ifndef _StdLPersistent_Data_HeaderFile
16#define _StdLPersistent_Data_HeaderFile
7ed7467d 17
18#include <StdObjMgt_Persistent.hxx>
ff205346 19#include <StdLPersistent_HArray1.hxx>
7ed7467d 20
21class TDF_Data;
22
23
ff205346 24class StdLPersistent_Data : public StdObjMgt_Persistent
7ed7467d 25{
26public:
27 //! Read persistent data from a file.
28 Standard_EXPORT virtual void Read (StdObjMgt_ReadData& theReadData);
ec964372 29 //! Write persistent data to a file.
30 Standard_EXPORT virtual void Write (StdObjMgt_WriteData& theWriteData) const;
31 //! Gets persistent child objects
0f57ab75 32 virtual void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const
ec964372 33 {
34 theChildren.Append(myLabels);
35 theChildren.Append(myAttributes);
36 }
37 //! Returns persistent type name
0f57ab75 38 virtual Standard_CString PName() const
ec964372 39 { return "PDF_Data"; }
7ed7467d 40
41 //! Import transient data from the persistent data.
42 Standard_EXPORT Handle(TDF_Data) Import() const;
43
44private:
45 class Parser;
46
47private:
45d8465e 48 Standard_Integer myVersion;
49 Handle(StdLPersistent_HArray1::Integer) myLabels;
50 Handle(StdLPersistent_HArray1::Persistent) myAttributes;
7ed7467d 51};
52
53#endif