class Poco::FIFOBufferStream

Overview

An output stream for writing to a FIFO. Moreā€¦

#include <FIFOBufferStream.h>

class FIFOBufferStream:
    public Poco::FIFOIOS,
    public iostream
{
public:
    // fields

    Poco::BasicEvent<bool>& readable;
    Poco::BasicEvent<bool>& writable;

    // construction

    FIFOBufferStream(FIFOBuffer& buffer);

    FIFOBufferStream(
        char* pBuffer,
        std::size_t length
        );

    FIFOBufferStream(
        const char* pBuffer,
        std::size_t length
        );

    FIFOBufferStream(std::size_t length);
};

Inherited Members

public:
    // methods

    FIFOBufferStreamBuf*
    rdbuf();

    void
    close();

protected:
    // fields

    FIFOBufferStreamBuf _buf;

Detailed Documentation

An output stream for writing to a FIFO.

Construction

FIFOBufferStream(FIFOBuffer& buffer)

Creates the FIFOBufferStream with supplied buffer as initial value.

FIFOBufferStream(
    char* pBuffer,
    std::size_t length
    )

Creates a FIFOBufferStream and assigns the given buffer to it.

FIFOBufferStream(
    const char* pBuffer,
    std::size_t length
    )

Creates a FIFOBufferStream and assigns the given buffer to it.

FIFOBufferStream(std::size_t length)

Creates a FIFOBufferStream of the given length.