A transcode::stream is used to wrap a C++ standard I/O stream with a transcode::streambuf so that transcoding and the management of the streambuf happens automatically.
More...
#include <zorba/transcode_stream.h>
List of all members.
Public Member Functions |
| stream (char const *charset) |
| Constructs a transcode::stream.
|
template<typename StreamArgType > |
| stream (char const *charset, StreamArgType stream_arg) |
| Constructs a stream.
|
template<typename StreamArgType > |
| stream (char const *charset, StreamArgType stream_arg, std::ios_base::openmode mode) |
| Constructs a transcode::stream.
|
Detailed Description
A transcode::stream is used to wrap a C++ standard I/O stream with a transcode::streambuf so that transcoding and the management of the streambuf happens automatically.
- Template Parameters:
-
StreamType | The I/O stream class type to wrap. It must be a concrete stream class. |
Constructor & Destructor Documentation
zorba::transcode::stream::stream |
( |
char const * |
charset | ) |
[inline] |
Constructs a transcode::stream.
- Parameters:
-
charset | The name of the character encoding to convert from/to. |
- Exceptions:
-
std::invalid_argument | if charset is not supported. |
Definition at line 134 of file transcode_stream.h.
template<typename StreamArgType >
zorba::transcode::stream::stream |
( |
char const * |
charset, |
|
|
StreamArgType |
stream_arg |
|
) |
| [inline] |
Constructs a stream.
- Template Parameters:
-
StreamArgType | The type of the first argument of StreamType's constructor. |
- Parameters:
-
charset | The name of the character encoding to convert from/to. |
stream_arg | The argument to pass as the first argument to StreamType's constructor. |
- Exceptions:
-
std::invalid_argument | if charset is not supported. |
Definition at line 151 of file transcode_stream.h.
template<typename StreamArgType >
zorba::transcode::stream::stream |
( |
char const * |
charset, |
|
|
StreamArgType |
stream_arg, |
|
|
std::ios_base::openmode |
mode |
|
) |
| [inline] |
Constructs a transcode::stream.
- Template Parameters:
-
StreamArgType | The type of the first argument of StreamType's constructor. |
- Parameters:
-
charset | The name of the character encoding to convert from/to. |
stream_arg | The argument to pass as the first argument to StreamType's constructor. |
mode | The open-mode to pass to StreamType's constructor. |
- Exceptions:
-
std::invalid_argument | if charset is not supported. |
Definition at line 170 of file transcode_stream.h.
The documentation for this class was generated from the following file: