Retrieve domain name from this atom. This will be populated if the hzAtom has a value and the datatype is BASETYPE_DOMAIN and be empty otherwise Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| hzDomain | hzAtom::Domain | (void) |
Declared in file: hzDatabase.h
Defined in file : hzAtom.cpp
Function Logic:
Function body:
hzDomain hzAtom::Domain (void)
{
// Retrieve domain name from this atom. This will be populated if the hzAtom has a value and the datatype is BASETYPE_DOMAIN and be empty otherwise
//
// Arguments: None
// Returns: hzDomain instance by value
if (m_eStatus == ATOM_SET && m_eType == BASETYPE_DOMAIN)
{
hzDomain dom ; // To be returned
hzDomain tmp ; // Cast
tmp._int_set(m_Data.m_uInt32) ; dom = tmp ; tmp._int_clr() ; return dom ;
}
return _hz_null_hzDomain ;
}