Return true if this hzDomain instance is lexically greater than the operand. Note that comparison is first done on the domain part (the RHS of the @) and then done on the address part (the LHS of the @)
| Return Type | Function name | Arguments |
|---|---|---|
| bool | hzDomain::operator> | (hzDomain&,) |
Declared in file: hzEmaddr.h
Defined in file : hzDomain.cpp
Function Logic:
Function body:
bool hzDomain::operator> (hzDomain& E)
{
// Return true if this hzDomain instance is lexically greater than the operand. Note that comparison is first done on the domain
// part (the RHS of the @) and then done on the address part (the LHS of the @)
//
// Arguments: 1) E Test domain name
//
// Returns: True If this addesss is lexically greater than the supplied test domain name
// False Otherwise
_hzfunc("hzDomain::operator>") ;
int32_t res ; // Comparison result
// Are this and the operand connected?
if (m_addr == E.m_addr) return false ;
if (m_addr && E.m_addr == 0)return true ;
if (E.m_addr && m_addr == 0)return false ;
// Compare domains first
res = strcmp(GetDomain(), E.GetDomain()) ;
if (res > 0)
return true ;
return false ;
}