summaryrefslogtreecommitdiff
path: root/drv/XCAFSchema/XCAFSchema_PColStd_HArray1OfReal.cxx
blob: af5ae09bca587afa6949857867b586f733ececfc (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef _XCAFSchema_PColStd_HArray1OfReal_HeaderFile
#include <XCAFSchema_PColStd_HArray1OfReal.hxx>
#endif
#ifndef _PColStd_HArray1OfReal_HeaderFile
#include <PColStd_HArray1OfReal.hxx>
#endif
#include <XCAFSchema_PColStd_HArray1OfReal.ixx>
#ifndef _Storage_Schema_HeaderFile
#include <Storage_Schema.hxx>
#endif
#ifndef _Storage_stCONSTclCOM_HeaderFile
#include <Storage_stCONSTclCOM.hxx>
#endif

IMPLEMENT_STANDARD_HANDLE(XCAFSchema_PColStd_HArray1OfReal,Storage_CallBack)
IMPLEMENT_STANDARD_RTTIEXT(XCAFSchema_PColStd_HArray1OfReal,Storage_CallBack)

Handle(Standard_Persistent) XCAFSchema_PColStd_HArray1OfReal::New() const
{
  return new PColStd_HArray1OfReal(Storage_stCONSTclCOM());
}

void XCAFSchema_PColStd_HArray1OfReal::SAdd(const Handle(PColStd_HArray1OfReal)& p, const Handle(Storage_Schema)& theSchema)
{
  if (!p.IsNull()) {
    if (theSchema->AddPersistent(p,"PColStd_HArray1OfReal")) {
      
    }
  }
}

void XCAFSchema_PColStd_HArray1OfReal::Add(const Handle(Standard_Persistent)& p, const Handle(Storage_Schema)& theSchema) const
{
  XCAFSchema_PColStd_HArray1OfReal::SAdd((Handle(PColStd_HArray1OfReal)&)p,theSchema);
}

void XCAFSchema_PColStd_HArray1OfReal::SWrite(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{ 
  if (!p.IsNull()) {
    Handle(PColStd_HArray1OfReal) &pp = (Handle(PColStd_HArray1OfReal)&)p;
    theSchema->WritePersistentObjectHeader(p,f);
    
    f.BeginWritePersistentObjectData();
  f.PutInteger(pp->_CSFDB_GetPColStd_HArray1OfRealLowerBound());
  f.PutInteger(pp->_CSFDB_GetPColStd_HArray1OfRealUpperBound());
    XCAFSchema_PColStd_FieldOfHArray1OfReal::SWrite(pp->_CSFDB_GetPColStd_HArray1OfRealData(),f,theSchema);

    f.EndWritePersistentObjectData();
  }
}

void XCAFSchema_PColStd_HArray1OfReal::Write(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) const
{ 
  XCAFSchema_PColStd_HArray1OfReal::SWrite(p,f,theSchema);
}


void XCAFSchema_PColStd_HArray1OfReal::SRead(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{ 
  if (!p.IsNull()) {
    Handle(PColStd_HArray1OfReal) &pp = (Handle(PColStd_HArray1OfReal)&)p;

    theSchema->ReadPersistentObjectHeader(f);
    f.BeginReadPersistentObjectData();

    Standard_Integer PColStd_HArray1OfRealLowerBound;
    f.GetInteger(PColStd_HArray1OfRealLowerBound);
    pp->_CSFDB_SetPColStd_HArray1OfRealLowerBound(PColStd_HArray1OfRealLowerBound);

    Standard_Integer PColStd_HArray1OfRealUpperBound;
    f.GetInteger(PColStd_HArray1OfRealUpperBound);
    pp->_CSFDB_SetPColStd_HArray1OfRealUpperBound(PColStd_HArray1OfRealUpperBound);

    XCAFSchema_PColStd_FieldOfHArray1OfReal::SRead((PColStd_FieldOfHArray1OfReal&)pp->_CSFDB_GetPColStd_HArray1OfRealData(),f,theSchema);

    f.EndReadPersistentObjectData();
  }
}

void XCAFSchema_PColStd_HArray1OfReal::Read(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) const

{ 
  XCAFSchema_PColStd_HArray1OfReal::SRead(p,f,theSchema);
}