summaryrefslogtreecommitdiff
path: root/drv/ShapeSchema/ShapeSchema_gp_Mat2d.cxx
blob: 75856731c440cf3b1ea2056c139bf520e9a65738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _ShapeSchema_gp_Mat2d_HeaderFile
#include <ShapeSchema_gp_Mat2d.hxx>
#endif
#ifndef _gp_Mat2d_HeaderFile
#include <gp_Mat2d.hxx>
#endif
#include <ShapeSchema_gp_Mat2d.ixx>
#ifndef _Storage_Schema_HeaderFile
#include <Storage_Schema.hxx>
#endif
#ifndef _Storage_stCONSTclCOM_HeaderFile
#include <Storage_stCONSTclCOM.hxx>
#endif

void ShapeSchema_gp_Mat2d::SWrite(const gp_Mat2d& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginWriteObjectData();
  Standard_Integer gp_Mat2dmatrix1 = 0,gp_Mat2dmatrix2 = 0;

    for (gp_Mat2dmatrix1 = 0; gp_Mat2dmatrix1 < 2; gp_Mat2dmatrix1++)
    for (gp_Mat2dmatrix2 = 0; gp_Mat2dmatrix2 < 2; gp_Mat2dmatrix2++)
 {
    f.PutReal(((gp_Mat2d&)pp)._CSFDB_Getgp_Mat2dmatrix(gp_Mat2dmatrix1,gp_Mat2dmatrix2));

  }

  f.EndWriteObjectData();
}

void ShapeSchema_gp_Mat2d::SRead(gp_Mat2d& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginReadObjectData();
  Standard_Integer gp_Mat2dmatrix1 = 0,gp_Mat2dmatrix2 = 0;
   
    for (gp_Mat2dmatrix1 = 0; gp_Mat2dmatrix1 < 2; gp_Mat2dmatrix1++)
    for (gp_Mat2dmatrix2 = 0; gp_Mat2dmatrix2 < 2; gp_Mat2dmatrix2++)
 {
  Standard_Real gp_Mat2dmatrix;

  f.GetReal(gp_Mat2dmatrix);
  pp._CSFDB_Getgp_Mat2dmatrix(gp_Mat2dmatrix1,gp_Mat2dmatrix2) = gp_Mat2dmatrix;

}

  f.EndReadObjectData();
}