Poco::Remoting::Binary

class BinaryIOS

Library: Remoting/Binary
Package: Binary
Header: Poco/Remoting/Binary/BinaryStream.h

Description

The base class for BinaryInputStream and BinaryOutputStream.

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

Inheritance

Direct Base Classes: std::ios

All Base Classes: std::ios

Known Derived Classes: BinaryInputStream, BinaryOutputStream

Member Summary

Member Functions: close, rdbuf

Constructors

BinaryIOS

BinaryIOS(
    std::istream & istr
);

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

BinaryIOS

BinaryIOS(
    std::ostream & ostr
);

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

Destructor

~BinaryIOS

~BinaryIOS();

Destroys the stream.

Member Functions

close

void close();

Writes the terminating period, followed by CR-LF.

rdbuf

BinaryStreamBuf * rdbuf();

Returns a pointer to the underlying streambuf.

Variables

_buf protected

BinaryStreamBuf _buf;