Public Member Functions | List of all members
zorba::base64::stream< StreamType > Class Template Reference

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. More...

#include <zorba/base64_stream.h>

Public Member Functions

 stream ()
 Constructs a base64::stream.
template<typename StreamArgType >
 stream (StreamArgType stream_arg)
 Constructs a stream.
template<typename StreamArgType >
 stream (StreamArgType stream_arg, std::ios_base::openmode mode)
 Constructs a base64::stream.

Detailed Description

template<class StreamType>
class zorba::base64::stream< StreamType >

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.

Template Parameters
StreamTypeThe I/O stream class type to wrap. It must be a concrete stream class.

Definition at line 247 of file base64_stream.h.

Constructor & Destructor Documentation

template<class StreamType >
zorba::base64::stream< StreamType >::stream ( )
inline

Constructs a base64::stream.

Definition at line 252 of file base64_stream.h.

template<class StreamType >
template<typename StreamArgType >
zorba::base64::stream< StreamType >::stream ( StreamArgType  stream_arg)
inline

Constructs a stream.

Template Parameters
StreamArgTypeThe type of the first argument of StreamType's constructor.
Parameters
stream_argThe argument to pass as the first argument to StreamType's constructor.

Definition at line 274 of file base64_stream.h.

template<class StreamType >
template<typename StreamArgType >
zorba::base64::stream< StreamType >::stream ( StreamArgType  stream_arg,
std::ios_base::openmode  mode 
)
inline

Constructs a base64::stream.

Template Parameters
StreamArgTypeThe type of the first argument of StreamType's constructor.
Parameters
stream_argThe argument to pass as the first argument to StreamType's constructor.
modeThe open-mode to pass to StreamType's constructor.

Definition at line 298 of file base64_stream.h.


The documentation for this class was generated from the following file:
blog comments powered by Disqus