Get boolean member within data object. The object must be initialized to a data class, and the supplied member must exist within that class and be of datatype BOOL or TBOOL

Return TypeFunction nameArguments
hzEcodehdbObject::GetBool(bool&,hdbMember*,)

Declared in file: hzDatabase.h
Defined in file : hdbObject.cpp

Function Logic:

0:START 1:result 2:unknown 3:items 4:unknown 5:Return hzerr(E_NOINIT,Single object container not init to a data class) 6:unknown 7:Return hzerr(E_ARGUMENT,No member supplied) 8:unknown 9:Return hzerr(E_CORRUPT,Member %s does not belong to class %s,pMbr->txtName(),m_pClass->txtName()) 10:unknown 11:Return E_OK 12:Return m_pRoot->GetBool(result,pMbr)

Function body:

hzEcode hdbObject::GetBool (bool& result)hdbMember* pMbr, 
{
   //  Get boolean member within data object. The object must be initialized to a data class, and the supplied member must exist within that class and be of datatype BOOL or TBOOL 
   //  
   //  Arguments: 1) result The bool result
   //     2) pMbr Member pointer
   //  
   //  Returns: E_NOINIT If the object has not been initialized to a class
   //     E_ARGUMENT If no member is supplied
   //     E_CORRUPT If the supplied member number does not identify an object class member.
   //     E_TYPE  If the object class member is not atomic (is another class) or if the supplied atom has the wrong type.
   //     E_NODATA If the member is of type TBOOL and has not been set
   //     E_OK  If the object class member has been set to the supplied atom value.
   _hzfunc("hdbObject::GetBool") ;
   result = false ;
   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)
       return E_OK ;
   return m_pRoot->GetBool(result, pMbr) ;
}