#ifndef _StdSchema_PDataStd_Real_HeaderFile
#include <StdSchema_PDataStd_Real.hxx>
#endif
#ifndef _PDataStd_Real_HeaderFile
#include <PDataStd_Real.hxx>
#endif
#include <StdSchema_PDataStd_Real.ixx>
#ifndef _Storage_Schema_HeaderFile
#include <Storage_Schema.hxx>
#endif
#ifndef _Storage_stCONSTclCOM_HeaderFile
#include <Storage_stCONSTclCOM.hxx>
#endif

IMPLEMENT_STANDARD_HANDLE(StdSchema_PDataStd_Real,Storage_CallBack)
IMPLEMENT_STANDARD_RTTIEXT(StdSchema_PDataStd_Real,Storage_CallBack)

Handle(Standard_Persistent) StdSchema_PDataStd_Real::New() const
{
  return new PDataStd_Real(Storage_stCONSTclCOM());
}

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

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

void StdSchema_PDataStd_Real::SWrite(const Handle(Standard_Persistent)& p, Storage_BaseDriver& f, const Handle(Storage_Schema)& theSchema)
{ 
  if (!p.IsNull()) {
    Handle(PDataStd_Real) &pp = (Handle(PDataStd_Real)&)p;
    theSchema->WritePersistentObjectHeader(p,f);

    (void)pp; // dummy to avoid compiler warning on unused arg
    
    f.BeginWritePersistentObjectData();
  f.PutReal(pp->_CSFDB_GetPDataStd_RealmyValue());
  f.PutInteger(pp->_CSFDB_GetPDataStd_RealmyDimension());

    f.EndWritePersistentObjectData();
  }
}

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


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

    (void)pp; // dummy to avoid compiler warning on unused arg

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

    Standard_Real PDataStd_RealmyValue;
    f.GetReal(PDataStd_RealmyValue);
    pp->_CSFDB_SetPDataStd_RealmyValue(PDataStd_RealmyValue);

    Standard_Integer PDataStd_RealmyDimension;
    f.GetInteger(PDataStd_RealmyDimension);
    pp->_CSFDB_SetPDataStd_RealmyDimension(PDataStd_RealmyDimension);

    f.EndReadPersistentObjectData();
  }
}

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

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