| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbObject::SetValue | (const hdbMember*,const hzAtom&,) |
Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp
Function Logic:
Function body:
hzEcode hdbObject::SetValue (const hdbMember* pMbr, const hzAtom& atom)
{
_hzfunc("hdbObject::SetValue") ;
if (!this) hzexit(E_CORRUPT, "No instance") ;
if (!m_pClass) return hzerr(E_NOINIT, "Single object container not init to a data 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 (atom.Status() == ATOM_ERROR)
return hzerr(E_BADVALUE, "Member %s not set", pMbr->txtName()) ;
if (!m_pRoot)
m_pRoot = _obj_data::GetInstance(m_pClass) ;
return m_pRoot->SetValue(pMbr, atom) ;
}