Defined in file: hzChain.h

The hzEmaddr class imposes a data type of email address. It is a form of string that can only accept values that are of the form of an email address. As such, no operators apply to hzEmaddr. They may only be set and compared.

Constructors/Detructors

hzEmaddr*hzEmaddr(void)
hzEmaddr*hzEmaddr(hzEmaddr& ema)
hzEmaddr*hzEmaddr(const char* cpEMAddr)
hzEmaddr*hzEmaddr(hzString& ema)
void~hzEmaddr(void)

Public Methods:

voidClear(void)Clear the contents Arguments: None Returns: None
uint32_tCopies(void)Return number of copies for diagnostics
uint32_tDomLen(void)Return length in bytes of the domain part of the email address
const char*GetAddress(void)Return whole email address as null terminated string
const char*GetDomain(void)Return domain name as null terminated string
uint32_tLength(void)Return length in bytes of the whole email address
uint32_tLhsLen(void)Return length in bytes of the first part email address
void_dec_copy(void)
bool_inc_copy(void)
uint32_t_int_addr(void)
void_int_clr(void)
void_int_set(uint32_t addr)
_atomvalatomval_hold(hzEmaddr& ema)
boolvalid(void)

Overloaded operators:

const char*hzEmaddr :: operator const char *(void)Returns the string data (a null terminated string) Arguments: None
const char*operator const char *(void)
booloperator!(void)
booloperator!=(const char* cpStr)Test for inequality between this hzEmaddr and an email address held in a character string
booloperator!=(hzString& S)Test for inequality between this hzEmaddr and an email address held in a hzString
const char*operator*(void)Returns the URL data (a null terminated string) Arguments: None
booloperator<(hzEmaddr& E)Return true if this hzEmaddr instance is lexically less 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 @)
ostream&operator<<(ostream& os)hzEmaddr& ema,
booloperator<=(hzEmaddr& E)Return true if this hzEmaddr instance is lexically less than or equal to 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 @)
hzEmaddr&operator=(const char* cpStr)Assign the hzEmaddr to an email address held in a character string Note: This function will record an E_FORMAT error if the supplied cstr did not amount to an email address
hzEmaddr&operator=(hzString& S)Assign the hzEmaddr to an email address held in a hzString instance Note: This function will record an E_FORMAT error if the supplied cstr did not amount to an email address
hzEmaddr&operator=(hzChain::Iter& ci)Determines if the supplied iterator is at the start of a valid email address and if it is, assignes this as the value to the calling instance.
hzEmaddr&operator=(hzEmaddr& E)Assign the hzEmaddr to an email address held in another hzEmaddr instance
booloperator==(hzEmaddr& E)Test for equality between this hzEmaddr and an operand instance
booloperator==(const char* cpStr)Test for equality between this hzEmaddr and an email address held in a character string
booloperator==(hzString& S)Test for equality between this hzEmaddr and an email address held in a hzString
booloperator>(hzEmaddr& E)Return true if this hzEmaddr 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 @)
booloperator>=(hzEmaddr& E)Return true if this hzEmaddr instance is lexically greater than or equal to 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 @)

Member Variables:

uint32_tm_addrEncoded address of data space and control