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:
| void | Clear | (void) | Clear the contents Arguments: None Returns: None |
| uint32_t | Copies | (void) | Return number of copies for diagnostics |
| uint32_t | DomLen | (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_t | Length | (void) | Return length in bytes of the whole email address |
| uint32_t | LhsLen | (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) | |
| _atomval | atomval_hold | (hzEmaddr& ema) | |
| bool | valid | (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) | |
| bool | operator! | (void) | |
| bool | operator!= | (const char* cpStr) | Test for inequality between this hzEmaddr and an email address held in a character string |
| bool | operator!= | (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 |
| bool | operator< | (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, | |
| bool | operator<= | (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 |
| bool | operator== | (hzEmaddr& E) | Test for equality between this hzEmaddr and an operand instance |
| bool | operator== | (const char* cpStr) | Test for equality between this hzEmaddr and an email address held in a character string |
| bool | operator== | (hzString& S) | Test for equality between this hzEmaddr and an email address held in a hzString |
| bool | operator> | (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 @) |
| bool | operator>= | (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_t | m_addr | Encoded address of data space and control |