#include <cxxtools/textstream.h>

Public Types | |
|
typedef TextCodec < cxxtools::Char, char > | Codec |
Public Member Functions | |
| TextOStream (std::ostream &os, Codec *codec) | |
| Constructor. | |
| TextOStream (Codec *codec) | |
| TextOStream | ( | std::ostream & | os, | |
| Codec * | codec | |||
| ) |
The stream will write bytes to os 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.