summaryrefslogtreecommitdiff
path: root/drv/ShapeSchema/ShapeSchema_PPoly_Triangle.cxx
blob: e04e8c23b715a16b94e77a3f5f1af4ed68426d36 (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
#ifndef _ShapeSchema_PPoly_Triangle_HeaderFile
#include <ShapeSchema_PPoly_Triangle.hxx>
#endif
#ifndef _PPoly_Triangle_HeaderFile
#include <PPoly_Triangle.hxx>
#endif
#include <ShapeSchema_PPoly_Triangle.ixx>
#ifndef _Storage_Schema_HeaderFile
#include <Storage_Schema.hxx>
#endif
#ifndef _Storage_stCONSTclCOM_HeaderFile
#include <Storage_stCONSTclCOM.hxx>
#endif

void ShapeSchema_PPoly_Triangle::SWrite(const PPoly_Triangle& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginWriteObjectData();
  Standard_Integer PPoly_TrianglemyNodes1 = 0;

    for (PPoly_TrianglemyNodes1 = 0; PPoly_TrianglemyNodes1 < 3; PPoly_TrianglemyNodes1++)
 {
    f.PutInteger(((PPoly_Triangle&)pp)._CSFDB_GetPPoly_TrianglemyNodes(PPoly_TrianglemyNodes1));

  }

  f.EndWriteObjectData();
}

void ShapeSchema_PPoly_Triangle::SRead(PPoly_Triangle& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginReadObjectData();
  Standard_Integer PPoly_TrianglemyNodes1 = 0;
   
    for (PPoly_TrianglemyNodes1 = 0; PPoly_TrianglemyNodes1 < 3; PPoly_TrianglemyNodes1++)
 {
  Standard_Integer PPoly_TrianglemyNodes;

  f.GetInteger(PPoly_TrianglemyNodes);
  pp._CSFDB_GetPPoly_TrianglemyNodes(PPoly_TrianglemyNodes1) = PPoly_TrianglemyNodes;

}

  f.EndReadObjectData();
}