0026961: Recover possibility to read files in old persistence format
[occt.git] / src / ShapePersistent / ShapePersistent_Geom2d.hxx
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_Geom2d_HeaderFile
16 #define _ShapePersistent_Geom2d_HeaderFile
17
18 #include <ShapePersistent_Geom.hxx>
19
20 #include <Geom2d_CartesianPoint.hxx>
21 #include <Geom2d_Direction.hxx>
22 #include <Geom2d_VectorWithMagnitude.hxx>
23 #include <Geom2d_AxisPlacement.hxx>
24 #include <Geom2d_Transformation.hxx>
25 #include <Geom2d_Curve.hxx>
26
27
28 class ShapePersistent_Geom2d : protected ShapePersistent_Geom
29 {
30   typedef geometryBase<Geom2d_Geometry> basic;
31
32 public:
33   typedef ShapePersistent_Geom::Geometry                         Geometry;
34
35   typedef subBase_empty<basic>                                   Point;
36   typedef instance<Point, Geom2d_CartesianPoint, gp_Pnt2d>       CartesianPoint;
37
38   typedef subBase_gp<basic, gp_Vec2d>                            Vector;
39   typedef instance<Vector, Geom2d_Direction          , gp_Dir2d> Direction;
40   typedef instance<Vector, Geom2d_VectorWithMagnitude, gp_Vec2d> VectorWithMagnitude;
41
42   typedef instance<basic, Geom2d_AxisPlacement, gp_Ax2d>         AxisPlacement;
43
44   typedef instance <SharedBase<Geom2d_Transformation>,
45                     Geom2d_Transformation,
46                     gp_Trsf2d>                                   Transformation;
47
48   typedef geometryBase<Geom2d_Curve>                             Curve;
49 };
50
51 #endif