#ifndef _StdLSchema_PDataStd_IntPackedMap_1_HeaderFile #include #endif #ifndef _PDataStd_IntPackedMap_1_HeaderFile #include #endif #include #ifndef _Storage_Schema_HeaderFile #include #endif #ifndef _Storage_stCONSTclCOM_HeaderFile #include #endif IMPLEMENT_STANDARD_HANDLE(StdLSchema_PDataStd_IntPackedMap_1,Storage_CallBack) IMPLEMENT_STANDARD_RTTIEXT(StdLSchema_PDataStd_IntPackedMap_1,Storage_CallBack) Handle(Standard_Persistent) StdLSchema_PDataStd_IntPackedMap_1::New() const { return new PDataStd_IntPackedMap_1(Storage_stCONSTclCOM()); } void StdLSchema_PDataStd_IntPackedMap_1::SAdd(const Handle(PDataStd_IntPackedMap_1)& p, const Handle(Storage_Schema)& theSchema) { if (!p.IsNull()) { if (theSchema->AddPersistent(p,"PDataStd_IntPackedMap_1")) { theSchema->PersistentToAdd(p->_CSFDB_GetPDataStd_IntPackedMap_1myIntValues()); } } } void StdLSchema_PDataStd_IntPackedMap_1::Add(const Handle(Standard_Persistent)& p, const Handle(Storage_Schema)& theSchema) const { StdLSchema_PDataStd_IntPackedMap_1::SAdd((Handle(PDataStd_IntPackedMap_1)&)p,theSchema); } void StdLSchema_PDataStd_IntPackedMap_1::SWrite(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) { if (!p.IsNull()) { Handle(PDataStd_IntPackedMap_1) &pp = (Handle(PDataStd_IntPackedMap_1)&)p; theSchema->WritePersistentObjectHeader(p,f); f.BeginWritePersistentObjectData(); theSchema->WritePersistentReference(pp->_CSFDB_GetPDataStd_IntPackedMap_1myIntValues(),f); f.PutBoolean(pp->_CSFDB_GetPDataStd_IntPackedMap_1myDelta()); f.EndWritePersistentObjectData(); } } void StdLSchema_PDataStd_IntPackedMap_1::Write(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) const { StdLSchema_PDataStd_IntPackedMap_1::SWrite(p,f,theSchema); } void StdLSchema_PDataStd_IntPackedMap_1::SRead(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) { if (!p.IsNull()) { Handle(PDataStd_IntPackedMap_1) &pp = (Handle(PDataStd_IntPackedMap_1)&)p; theSchema->ReadPersistentObjectHeader(f); f.BeginReadPersistentObjectData(); Handle(PColStd_HArray1OfInteger) PDataStd_IntPackedMap_1myIntValues; theSchema->ReadPersistentReference(PDataStd_IntPackedMap_1myIntValues,f); pp->_CSFDB_SetPDataStd_IntPackedMap_1myIntValues(PDataStd_IntPackedMap_1myIntValues); Standard_Boolean PDataStd_IntPackedMap_1myDelta; f.GetBoolean(PDataStd_IntPackedMap_1myDelta); pp->_CSFDB_SetPDataStd_IntPackedMap_1myDelta(PDataStd_IntPackedMap_1myDelta); f.EndReadPersistentObjectData(); } } void StdLSchema_PDataStd_IntPackedMap_1::Read(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema) const { StdLSchema_PDataStd_IntPackedMap_1::SRead(p,f,theSchema); }