cxxtools::TextBuffer Class Reference

Buffers the conversion of 8-bit character sequences to unicode. More...

#include <cxxtools/textbuffer.h>

Inheritance diagram for cxxtools::TextBuffer:
cxxtools::BasicTextBuffer< cxxtools::Char, char > basic_streambuf

Public Types

typedef TextCodec
< cxxtools::Char, char > 
Codec
- Public Types inherited from cxxtools::BasicTextBuffer< cxxtools::Char, char >
typedef char extern_type
typedef cxxtools::Char intern_type
typedef cxxtools::Char char_type
typedef std::char_traits
< cxxtools::Char
traits_type
typedef traits_type::int_type int_type
typedef traits_type::pos_type pos_type
typedef traits_type::off_type off_type
typedef TextCodec< char_type,
extern_type
CodecType
typedef MBState state_type

Public Member Functions

 TextBuffer (std::ios *buffer, Codec *codec)
 Constructs a new TextBuffer See BasicTextBuffer::BasicTextBuffer() for a more detailed description.
- Public Member Functions inherited from cxxtools::BasicTextBuffer< cxxtools::Char, char >
 BasicTextBuffer (std::basic_ios< extern_type > *target, CodecType *codec)
 Creates a BasicTextBuffer using the given stream buffer and codec.
 ~BasicTextBuffer () throw ()
void attach (std::basic_ios< extern_type > &target)
void detach ()
int terminate ()
std::streamsize import ()

Additional Inherited Members

- Protected Member Functions inherited from cxxtools::BasicTextBuffer< cxxtools::Char, char >
virtual int sync ()
virtual std::streamsize showmanyc ()
virtual int_type overflow (int_type ch=traits_type::eof())
virtual int_type underflow ()
std::pair< int_type,
std::streamsize > 
do_underflow (std::streamsize size)
- Static Protected Member Functions inherited from cxxtools::BasicTextBuffer< cxxtools::Char, char >
static void copyChars (extern_type *s1, const char_type *s2, size_t n)
static void copyBytes (char_type *s1, const extern_type *s2, size_t n)

Detailed Description

Buffers the conversion of 8-bit character sequences to unicode.

The internal type is cxxtools::Char. The external type is $char$. See BasicTextBuffer for a more detailed description.

Member Typedef Documentation

Constructor & Destructor Documentation

cxxtools::TextBuffer::TextBuffer ( std::ios *  buffer,
Codec codec 
)

Constructs a new TextBuffer See BasicTextBuffer::BasicTextBuffer() for a more detailed description.

Parameters
bufferThe buffer (external device) which is wrapped by this object.
codecThe codec which is used to convert data from and to the external device.

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