summaryrefslogtreecommitdiff
path: root/drv/StdSchema/StdSchema_gp_XYZ.cxx
blob: d098c58464fd819364d8053172c5a5990b389d1d (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
#ifndef _StdSchema_gp_XYZ_HeaderFile
#include <StdSchema_gp_XYZ.hxx>
#endif
#ifndef _gp_XYZ_HeaderFile
#include <gp_XYZ.hxx>
#endif
#include <StdSchema_gp_XYZ.ixx>
#ifndef _Storage_Schema_HeaderFile
#include <Storage_Schema.hxx>
#endif
#ifndef _Storage_stCONSTclCOM_HeaderFile
#include <Storage_stCONSTclCOM.hxx>
#endif

void StdSchema_gp_XYZ::SWrite(const gp_XYZ& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginWriteObjectData();
  f.PutReal(pp._CSFDB_Getgp_XYZx());
  f.PutReal(pp._CSFDB_Getgp_XYZy());
  f.PutReal(pp._CSFDB_Getgp_XYZz());

  f.EndWriteObjectData();
}

void StdSchema_gp_XYZ::SRead(gp_XYZ& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginReadObjectData();

    Standard_Real gp_XYZx;
    f.GetReal(gp_XYZx);
    pp._CSFDB_Setgp_XYZx(gp_XYZx);

    Standard_Real gp_XYZy;
    f.GetReal(gp_XYZy);
    pp._CSFDB_Setgp_XYZy(gp_XYZy);

    Standard_Real gp_XYZz;
    f.GetReal(gp_XYZz);
    pp._CSFDB_Setgp_XYZz(gp_XYZz);

  f.EndReadObjectData();
}