#include <cxxtools/textstream.h>

Public Types | |
|
typedef TextCodec < cxxtools::Char, char > | Codec |
Public Member Functions | |
| TextStream (std::iostream &ios, Codec *codec) | |
| Constructor. | |
| TextStream (Codec *codec) | |
| TextStream | ( | std::iostream & | ios, | |
| Codec * | codec | |||
| ) |
The stream will write or write bytes to ios and use the codec codec for character conversion. The codec will be destroyed by the buffer of this stream if the codec was constructed with a refcount of 0.