| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbObject::GetValue | (hzAtom&,const hdbMember*,unsigned int,) |
Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp
Function Logic:
Function body:
hzEcode hdbObject::GetValue (hzAtom& atom, const hdbMember* pMbr, unsigned int nOset)
{
_hzfunc("hdbObject::GetValue(atom)") ;
_atomval av ;
atom.Clear() ;
if (!m_pClass) return hzerr(E_NOINIT, "Object has no class") ;
if (!pMbr) return hzerr(E_ARGUMENT, "No member supplied") ;
if (pMbr->Class() != m_pClass)
return hzerr(E_CORRUPT, "Member %s does not belong to class %s", pMbr->txtName(), m_pClass->txtName()) ;
if (pMbr->Basetype() == BASETYPE_CLASS)
return E_TYPE ;
if (!m_pRoot)
return E_OK ;
return m_pRoot->GetValue(atom, pMbr, nOset) ;
}