zorba::base64::stream

#include <zorba/util/base64_stream.h>

A base64::stream is used to wrap a C++ standard I/O stream with a base64::streambuf so that encoding/decoding and the management of the streambuf happens automatically. A base64::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

b64buf_

Public Functions

stream()

Constructs a base64::stream.

stream(StreamArgType stream_arg)

Constructs a stream.

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

Constructs a base64::stream.

Private Functions

void

init()

Private Attributes

b64buf_

streambuf b64buf_

Public Functions

stream

 stream()

Constructs a base64::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 base64::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()