Set the EDO to the value in the supplied chain
| Return Type | Function name | Arguments |
|---|---|---|
| hzEdo& | hzEdo::SetValue | (hzChain&,) |
Declared in file: hzDatabase.h
Defined in file : hdbObjRepos.cpp
Function Logic:
Function body:
hzEdo& hzEdo::SetValue (hzChain& Z)
{
// Set the EDO to the value in the supplied chain
_hzfunc("hzEdo::SetValue") ;
chIter zi ; // Chain iterator
uchar* pSlot ; // EDO slot
uchar* u ; // EDO slot iterator
if (!g_pSMAR_Edo)
g_pSMAR_Edo = new hzSMAR(300);
Clear() ;
if (Z.Size())
{
m_addr = g_pSMAR_Edo->Alloc(Z.Size()) ;
u = pSlot = g_pSMAR_Edo->Xlate(m_addr) ;
for (zi = Z ; !zi.eof() ; u++, zi++)
*u = *zi ;
}
return *this ;
}