| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hdbObject::SetBool | (const hdbMember*,bool,) |
Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp
Function Logic:
Function body:
hzEcode hdbObject::SetBool (const hdbMember* pMbr, bool bValue)
{
_hzfunc("hdbObject::SetBool") ;
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 (!m_pRoot)
m_pRoot = _obj_data::GetInstance(m_pClass) ;
return m_pRoot->SetBool(pMbr, bValue) ;
}