class Poco::TeeIOS

Overview

The base class for TeeInputStream and TeeOutputStream. Moreā€¦

#include <TeeStream.h>

class TeeIOS: public ios
{
public:
    // construction

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

    // methods

    void
    addStream(std::ostream& ostr);

    TeeStreamBuf*
    rdbuf();

protected:
    // fields

    TeeStreamBuf _buf;
};

// direct descendants

class TeeInputStream;
class TeeOutputStream;

Detailed Documentation

The base class for TeeInputStream and TeeOutputStream.

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

Construction

TeeIOS()

Creates the basic stream and leaves it unconnected.

TeeIOS(std::istream& istr)

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

TeeIOS(std::ostream& ostr)

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

Methods

void
addStream(std::ostream& ostr)

Adds the given output stream.

TeeStreamBuf*
rdbuf()

Returns a pointer to the underlying streambuf.