zorba::hexbinary::stream

#include <zorba/util/hexbinary_stream.h>

A hexbinary::stream is used to wrap a C++ standard I/O stream with a hexbinary::streambuf so that encoding/decoding and the management of the streambuf happens automatically. A hexbinary::stream is useful for streams created by you.

Parameters

StreamType The I/O stream class type to wrap. It must be a concrete stream class.

Private Attributes

streambuf

hb_buf_

Public Functions

stream()

Constructs a hexbinary::stream.

stream(StreamArgType stream_arg)

Constructs a stream.

stream(StreamArgType stream_arg, std::ios_base::openmode mode)

Constructs a hexbinary::stream.

Private Functions

void

init()

Private Attributes

hb_buf_

streambuf hb_buf_

Public Functions

stream

 stream()

Constructs a hexbinary::stream.

stream

 stream(StreamArgType stream_arg)

Constructs a stream.

Parameters

StreamArgType The type of the first argument of StreamType's constructor.

Parameters

stream_arg The argument to pass as the first argument to StreamType's constructor.

stream

 stream(StreamArgType stream_arg, std::ios_base::openmode mode)

Constructs a hexbinary::stream.

Parameters

StreamArgType The type of the first argument of StreamType's constructor.

Parameters

stream_arg The argument to pass as the first argument to StreamType's constructor.
mode The open-mode to pass to StreamType's constructor.

Private Functions

init

void init()