| Main Page Class Hierarchy Alphabetical List Compound List Examples |
#include <group.h>
Inheritance diagram for Group:

Public Member Functions | |
| Group (const char *) | |
| Group (const std::string &) | |
| void | name (const std::string &) |
| std::string | name (int bCanonical=0) const |
| void | set (const std::string &) |
| std::string | str () const |
Protected Member Functions | |
| FieldValue * | clone () const |
Groups class is a container class that stores Rfc822::Mailbox objects. Use this class when you need to create or parse rfc822 email groups
Parsing:
Rfc822::Group grp("drivers: [email protected], [email protected], [email protected];"); Rfc822::Group::const_iterator bit(grp.begin()), eit(grp.end()); cout << "Group " << grp.name() << endl; for(; bit != eit; ++bit) cout << " " << *bit << endl;
Building:
Rfc822::Group grp;
grp.push_back("[email protected]");
grp.push_back(Rfc822::Mailbox("[email protected]"));
grp.push_back(string("[email protected]"));