class Poco::PipeIOS

Overview

The base class for PipeInputStream and PipeOutputStream. Moreā€¦

#include <PipeStream.h>

class PipeIOS: public ios
{
public:
    // construction

    PipeIOS(
        const Pipe& pipe,
        openmode mode
        );

    // methods

    PipeStreamBuf*
    rdbuf();

    void
    close();

protected:
    // fields

    PipeStreamBuf _buf;
};

// direct descendants

class PipeInputStream;
class PipeOutputStream;

Detailed Documentation

The base class for PipeInputStream and PipeOutputStream.

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

Construction

PipeIOS(
    const Pipe& pipe,
    openmode mode
    )

Creates the PipeIOS with the given Pipe.

Methods

PipeStreamBuf*
rdbuf()

Returns a pointer to the internal PipeStreamBuf.

void
close()

Flushes the stream and closes the pipe.