0026961: Recover possibility to read files in old persistence format
[occt.git] / src / ShapePersistent / ShapePersistent_HArray1.hxx
CommitLineData
ff205346 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
15#ifndef _ShapePersistent_HArray1_HeaderFile
16#define _ShapePersistent_HArray1_HeaderFile
17
18#include <StdLPersistent_HArray1.hxx>
19
20#include <TColgp_HArray1OfXYZ.hxx>
21#include <TColgp_HArray1OfPnt.hxx>
22#include <TColgp_HArray1OfDir.hxx>
23#include <TColgp_HArray1OfVec.hxx>
24#include <TColgp_HArray1OfXY.hxx>
25#include <TColgp_HArray1OfPnt2d.hxx>
26#include <TColgp_HArray1OfDir2d.hxx>
27#include <TColgp_HArray1OfVec2d.hxx>
28#include <TColgp_HArray1OfLin2d.hxx>
29#include <TColgp_HArray1OfCirc2d.hxx>
30#include <Poly_HArray1OfTriangle.hxx>
31
32
33class ShapePersistent_HArray1 : private StdLPersistent_HArray1
34{
35 template <class ArrayClass>
36 class instance : public StdLPersistent_HArray1::base<ArrayClass>
37 {
38 virtual void readValue (StdObjMgt_ReadData& theReadData,
39 const Standard_Integer theIndex);
40 };
41
42public:
43 typedef instance<TColgp_HArray1OfXYZ> XYZ;
44 typedef instance<TColgp_HArray1OfPnt> Pnt;
45 typedef instance<TColgp_HArray1OfDir> Dir;
46 typedef instance<TColgp_HArray1OfVec> Vec;
47 typedef instance<TColgp_HArray1OfXY> XY;
48 typedef instance<TColgp_HArray1OfPnt2d> Pnt2d;
49 typedef instance<TColgp_HArray1OfDir2d> Dir2d;
50 typedef instance<TColgp_HArray1OfVec2d> Vec2d;
51 typedef instance<TColgp_HArray1OfLin2d> Lin2d;
52 typedef instance<TColgp_HArray1OfCirc2d> Circ2d;
53 typedef instance<Poly_HArray1OfTriangle> Triangle;
54};
55
56#endif