class Poco::Net::MailIOS

Overview

The base class for MailInputStream and MailOutputStream. Moreā€¦

#include <MailStream.h>

class MailIOS: public ios
{
public:
    // construction

    MailIOS(std::istream& istr);
    MailIOS(std::ostream& ostr);

    // methods

    void
    close();

    MailStreamBuf*
    rdbuf();

protected:
    // fields

    MailStreamBuf _buf;
};

// direct descendants

class MailInputStream;
class MailOutputStream;

Detailed Documentation

The base class for MailInputStream and MailOutputStream.

This class provides common methods and is also needed to ensure the correct initialization order of the stream buffer and base classes.

Construction

MailIOS(std::istream& istr)

Creates the MailIOS and connects it to the given input stream.

MailIOS(std::ostream& ostr)

Creates the MailIOS and connects it to the given output stream.

Methods

void
close()

Writes the terminating period, followed by CR-LF.

MailStreamBuf*
rdbuf()

Returns a pointer to the underlying streambuf.