cxxtools::TextStream Class Reference

Text Stream for Character conversion. More...

#include <cxxtools/textstream.h>

Inheritance diagram for cxxtools::TextStream:
cxxtools::BasicTextStream< Char, char > basic_iostream

Public Types

typedef TextCodec
< cxxtools::Char, char > 
Codec
- Public Types inherited from cxxtools::BasicTextStream< Char, char >
typedef char extern_type
typedef Char intern_type
typedef Char char_type
typedef std::char_traits< Chartraits_type
typedef traits_type::int_type int_type
typedef traits_type::pos_type pos_type
typedef traits_type::off_type off_type
typedef std::basic_iostream
< extern_type
StreamType
typedef TextCodec< char_type,
extern_type
CodecType

Public Member Functions

 TextStream (std::iostream &ios, Codec *codec)
 Constructor.
 TextStream (Codec *codec)
 ~TextStream ()
- Public Member Functions inherited from cxxtools::BasicTextStream< Char, char >
 BasicTextStream (StreamType &ios, CodecType *codec)
 Construct by stream and codec.
 BasicTextStream (CodecType *codec)
 ~BasicTextStream ()
 Deletes the codec.
void attach (StreamType &ios)
void detach ()
void terminate ()
BasicTextBuffer< intern_type,
extern_type > & 
buffer ()

Detailed Description

Text Stream for Character conversion.

Member Typedef Documentation

Constructor & Destructor Documentation

cxxtools::TextStream::TextStream ( std::iostream &  ios,
Codec codec 
)

Constructor.

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.

cxxtools::TextStream::TextStream ( Codec codec)
explicit
cxxtools::TextStream::~TextStream ( )

The documentation for this class was generated from the following file: