summaryrefslogtreecommitdiff
path: root/drv/XCAFSchema/XCAFSchema_PTopLoc_Location.cxx
blob: edcca33de7468841f0a126181ed3f8c7dd12fa6a (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
#ifndef _XCAFSchema_PTopLoc_Location_HeaderFile
#include <XCAFSchema_PTopLoc_Location.hxx>
#endif
#ifndef _PTopLoc_Location_HeaderFile
#include <PTopLoc_Location.hxx>
#endif
#include <XCAFSchema_PTopLoc_Location.ixx>
#ifndef _Storage_Schema_HeaderFile
#include <Storage_Schema.hxx>
#endif
#ifndef _Storage_stCONSTclCOM_HeaderFile
#include <Storage_stCONSTclCOM.hxx>
#endif

void XCAFSchema_PTopLoc_Location::SAdd(const PTopLoc_Location& p, const Handle(Storage_Schema)& theSchema)
{
     theSchema->PersistentToAdd(p._CSFDB_GetPTopLoc_LocationmyData());

}

void XCAFSchema_PTopLoc_Location::SWrite(const PTopLoc_Location& pp, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{
  f.BeginWriteObjectData();
    theSchema->WritePersistentReference(pp._CSFDB_GetPTopLoc_LocationmyData(),f);

  f.EndWriteObjectData();
}

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

    Handle(PTopLoc_ItemLocation) PTopLoc_LocationmyData;

    theSchema->ReadPersistentReference(PTopLoc_LocationmyData,f);
    pp._CSFDB_SetPTopLoc_LocationmyData(PTopLoc_LocationmyData);

  f.EndReadObjectData();
}