Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  
Public Member Functions | List of all members
Address Struct Reference

Address class as defined by RFC822. More...

#include <address.h>

Inheritance diagram for Address:
FieldValue

Public Member Functions

 Address (const char *)
 
 Address (const std::string &)
 
bool isGroup () const
 
Mailboxmailbox ()
 
const Mailboxmailbox () const
 
Groupgroup ()
 
const Groupgroup () const
 
void set (const std::string &)
 
std::string str () const
 
bool operator== (const Address &) const
 
bool operator!= (const Address &) const
 

Additional Inherited Members

- Protected Member Functions inherited from FieldValue
bool typeChecked () const
 
void typeChecked (bool)
 

Detailed Description

Address class as defined by RFC822.

Address class is a C++ representation of RFC822 address structure. Use this class to parse fields that contains email addresses or email group.

Rfc822::Address adr(msg.from());
if(adr.isGroup())
cout << *adr.group();
else
cout << *adr.mailbox();
See Also
RFC822

The documentation for this struct was generated from the following file: