#ifndef _XCAFSchema_PTopLoc_Datum3D_HeaderFile #include #endif #ifndef _PTopLoc_Datum3D_HeaderFile #include #endif #include #ifndef _Storage_Schema_HeaderFile #include #endif #ifndef _Storage_stCONSTclCOM_HeaderFile #include #endif IMPLEMENT_STANDARD_HANDLE(XCAFSchema_PTopLoc_Datum3D,Storage_CallBack) IMPLEMENT_STANDARD_RTTIEXT(XCAFSchema_PTopLoc_Datum3D,Storage_CallBack) Handle(Standard_Persistent) XCAFSchema_PTopLoc_Datum3D::New() const { return new PTopLoc_Datum3D(Storage_stCONSTclCOM()); } void XCAFSchema_PTopLoc_Datum3D::SAdd(const Handle(PTopLoc_Datum3D)& p, const Handle(Storage_Schema)& theSchema) { if (!p.IsNull()) { if (theSchema->AddPersistent(p,"PTopLoc_Datum3D")) { } } } void XCAFSchema_PTopLoc_Datum3D::Add(const Handle(Standard_Persistent)& p, const Handle(Storage_Schema)& theSchema) const { XCAFSchema_PTopLoc_Datum3D::SAdd((Handle(PTopLoc_Datum3D)&)p,theSchema); } void XCAFSchema_PTopLoc_Datum3D::SWrite(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) { if (!p.IsNull()) { Handle(PTopLoc_Datum3D) &pp = (Handle(PTopLoc_Datum3D)&)p; theSchema->WritePersistentObjectHeader(p,f); f.BeginWritePersistentObjectData(); XCAFSchema_gp_Trsf::SWrite(pp->_CSFDB_GetPTopLoc_Datum3DmyTrsf(),f,theSchema); f.EndWritePersistentObjectData(); } } void XCAFSchema_PTopLoc_Datum3D::Write(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) const { XCAFSchema_PTopLoc_Datum3D::SWrite(p,f,theSchema); } void XCAFSchema_PTopLoc_Datum3D::SRead(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) { if (!p.IsNull()) { Handle(PTopLoc_Datum3D) &pp = (Handle(PTopLoc_Datum3D)&)p; theSchema->ReadPersistentObjectHeader(f); f.BeginReadPersistentObjectData(); XCAFSchema_gp_Trsf::SRead((gp_Trsf&)pp->_CSFDB_GetPTopLoc_Datum3DmyTrsf(),f,theSchema); f.EndReadPersistentObjectData(); } } void XCAFSchema_PTopLoc_Datum3D::Read(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) const { XCAFSchema_PTopLoc_Datum3D::SRead(p,f,theSchema); }