Main Page Class Hierarchy Alphabetical List Compound List Examples |
#include <addresslist.h>
Inheritance diagram for AddressList:
Public Member Functions | |
AddressList (const char *) | |
AddressList (const std::string &) | |
std::string | str () const |
void | set (const std::string &) |
Protected Member Functions | |
FieldValue * | clone () const |
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(); }