Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  

AddressList Struct Reference

List of Address. More...

#include <addresslist.h>

Inheritance diagram for AddressList:

FieldValue List of all members.

Public Member Functions

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

Protected Member Functions

FieldValueclone () const

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 = "[email protected], friends: [email protected], "
                "[email protected];, [email protected]";
    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: