#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();
}
