Main Page   Class Hierarchy   Alphabetical List   Compound List   Examples  

Group Struct Reference

Represent the group type in the RFC822. More...

#include <group.h>

Inheritance diagram for Group:

FieldValue List of all members.

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

FieldValueclone () const

Detailed Description

Represent the group type in the RFC822.

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]"));

See also:
RFC822


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