summaryrefslogtreecommitdiff
path: root/drv/StdSchema/StdSchema_gp_Mat.cxx
blob: 79799fc48fbd4252307ce89494cd51e4b93c2fcb (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 _StdSchema_gp_Mat_HeaderFile
#include <StdSchema_gp_Mat.hxx>
#endif
#ifndef _gp_Mat_HeaderFile
#include <gp_Mat.hxx>
#endif
#include <StdSchema_gp_Mat.ixx>
#ifndef _Storage_Schema_HeaderFile
#include <Storage_Schema.hxx>
#endif
#ifndef _Storage_stCONSTclCOM_HeaderFile
#include <Storage_stCONSTclCOM.hxx>
#endif

void StdSchema_gp_Mat::SWrite(const gp_Mat& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginWriteObjectData();
  Standard_Integer gp_Matmatrix1 = 0,gp_Matmatrix2 = 0;

    for (gp_Matmatrix1 = 0; gp_Matmatrix1 < 3; gp_Matmatrix1++)
    for (gp_Matmatrix2 = 0; gp_Matmatrix2 < 3; gp_Matmatrix2++)
 {
    f.PutReal(((gp_Mat&)pp)._CSFDB_Getgp_Matmatrix(gp_Matmatrix1,gp_Matmatrix2));

  }

  f.EndWriteObjectData();
}

void StdSchema_gp_Mat::SRead(gp_Mat& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginReadObjectData();
  Standard_Integer gp_Matmatrix1 = 0,gp_Matmatrix2 = 0;
   
    for (gp_Matmatrix1 = 0; gp_Matmatrix1 < 3; gp_Matmatrix1++)
    for (gp_Matmatrix2 = 0; gp_Matmatrix2 < 3; gp_Matmatrix2++)
 {
  Standard_Real gp_Matmatrix;

  f.GetReal(gp_Matmatrix);
  pp._CSFDB_Getgp_Matmatrix(gp_Matmatrix1,gp_Matmatrix2) = gp_Matmatrix;

}

  f.EndReadObjectData();
}