Retrieve email address from this atom. This will be populated if the hzAtom has a value and the datatype is BASETYPE_EMADDR and be empty otherwise Arguments: None
| Return Type | Function name | Arguments |
|---|---|---|
| hzEmaddr | hzAtom::Emaddr | (void) |
Declared in file: hzDatabase.h
Defined in file : hzAtom.cpp
Function Logic:
Function body:
hzEmaddr hzAtom::Emaddr (void)
{
// Retrieve email address from this atom. This will be populated if the hzAtom has a value and the datatype is BASETYPE_EMADDR and be empty otherwise
//
// Arguments: None
// Returns: hzEmail Instance by value
if (m_eStatus == ATOM_SET && m_eType == BASETYPE_EMADDR)
{
hzEmaddr ema ; // To be returned
// hzEmaddr tmp ; // Cast
if (m_Data.m_uInt32)
{
ema._int_set(m_Data.m_uInt32) ;
ema._inc_copy() ;
return ema ;
}
// tmp._int_set(m_Data.m_uInt32) ; ema = tmp ; tmp._int_clr() ; return ema ;
}
return _hz_null_hzEmaddr ;
}