Populate object by reading in a whole object delta
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbObject::ImportDelta | (hzChain&,) |
Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp
Function Logic:
Function body:
hzEcode hdbObject::ImportDelta (hzChain& Z)
{
// Populate object by reading in a whole object delta
//
// Argument: Z Chain to which delta is written
//
// Returns: E_FORMAT If the delta is malformed
// E_OK Operation successful
_hzfunc("hdbObject::ImportDelta") ;
chIter zi ; // Chain iterator
zi = Z ;
if (zi != "@obj")
return hzerr(E_FORMAT, "Whole object deltas are expected to begin with '@obj'") ;
// Clear object
Clear() ;
if (!m_pRoot)
m_pRoot = _obj_data::GetInstance(m_pClass) ;
// threadLog("Importing delta of %d bytes\n", Z.Size()) ;
return _import_delta_r(zi, m_pRoot, 0);
}