class Poco::FIFOIOS

Overview

The base class for FIFOBufferInputStream and FIFOBufferStream. Moreā€¦

#include <FIFOBufferStream.h>

class FIFOIOS: public ios
{
public:
    // construction

    FIFOIOS(FIFOBuffer& buffer);

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

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

    FIFOIOS(std::size_t length);

    // methods

    FIFOBufferStreamBuf*
    rdbuf();

    void
    close();

protected:
    // fields

    FIFOBufferStreamBuf _buf;
};

// direct descendants

class FIFOBufferStream;

Detailed Documentation

The base class for FIFOBufferInputStream and FIFOBufferStream.

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

Construction

FIFOIOS(FIFOBuffer& buffer)

Creates a FIFOIOS and assigns the given buffer to it.

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

Creates a FIFOIOS and assigns the given buffer to it.

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

Creates a FIFOIOS and assigns the given buffer to it.

FIFOIOS(std::size_t length)

Creates a FIFOIOS of the given length.

Methods

FIFOBufferStreamBuf*
rdbuf()

Returns a pointer to the internal FIFOBufferStreamBuf.

void
close()

Flushes the stream.