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

List of Address. More...

#include <addresslist.h>

Inheritance diagram for AddressList:
FieldValue

Public Member Functions

 AddressList (const char *)
 
 AddressList (const std::string &)
 
std::string str () const
 
void set (const std::string &)
 

Protected Member Functions

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

Detailed Description

List of Address.

AddressList class is a container class that holds Address objects which, in turn can be a Group or a Mailbox.

const char* str = "dest@domain.com, friends: one@friends.net, "
"two@friends.net;, last@users.com";
AddressList aList(str);
AddressList::const_iterator bit(aList.begin()), eit(aList.end());
for(; bit != eit; ++bit)
{
Address& adr = *bit;
if(adr.isGroup())
cout << *adr.group();
else
cout << *adr.mailbox();
}
See Also
RFC822

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