cxxtools::iconvstreambuf Class Reference

std::streambuf-Interface for iconv(3) and related. More...

#include <cxxtools/iconvstream.h>

Public Types

enum  mode_t { mode_eof, mode_throw, mode_skip, mode_default = mode_eof }
 Behaviour on iconv error. More...

Public Member Functions

 iconvstreambuf ()
 ~iconvstreambuf ()
iconvstreambufopen (std::ostream &sink_, const char *tocode, const char *fromcode)
iconvstreambufopen (std::ostream &sink_, const char *tocode, const char *fromcode, mode_t mode_)
iconvstreambufclose () throw ()
int_type overflow (int_type c)
 overloaded from std::streambuf
int_type underflow ()
 overloaded from std::streambuf
int sync ()
 overloaded from std::streambuf
virtual std::streampos seekoff (std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode which)
 overloaded from std::streambuf, for input returned value represents number of bytes succesfully converted (does not count skipped bytes).
virtual std::streampos seekpos (std::streampos sp, std::ios_base::openmode which)
 overloaded from std::streambuf, for input returned value represents number of bytes succesfully converted (does not count skipped bytes).

Detailed Description

std::streambuf-Interface for iconv(3) and related.

iconv converts charactersets.

Member Enumeration Documentation

Behaviour on iconv error.

Enumerator:
mode_eof 

Old behaviour, just send EOF.

mode_throw 

Throw iconv_error.

mode_skip 

Skip invalid characters.

mode_default 

Constructor & Destructor Documentation

cxxtools::iconvstreambuf::iconvstreambuf ( )
inline
cxxtools::iconvstreambuf::~iconvstreambuf ( )
inline

Member Function Documentation

iconvstreambuf* cxxtools::iconvstreambuf::close ( ) throw ()
iconvstreambuf* cxxtools::iconvstreambuf::open ( std::ostream &  sink_,
const char *  tocode,
const char *  fromcode 
)
iconvstreambuf* cxxtools::iconvstreambuf::open ( std::ostream &  sink_,
const char *  tocode,
const char *  fromcode,
mode_t  mode_ 
)
int_type cxxtools::iconvstreambuf::overflow ( int_type  c)

overloaded from std::streambuf

virtual std::streampos cxxtools::iconvstreambuf::seekoff ( std::streamoff  off,
std::ios_base::seekdir  way,
std::ios_base::openmode  which 
)
virtual

overloaded from std::streambuf, for input returned value represents number of bytes succesfully converted (does not count skipped bytes).

virtual std::streampos cxxtools::iconvstreambuf::seekpos ( std::streampos  sp,
std::ios_base::openmode  which 
)
virtual

overloaded from std::streambuf, for input returned value represents number of bytes succesfully converted (does not count skipped bytes).

int cxxtools::iconvstreambuf::sync ( )

overloaded from std::streambuf

int_type cxxtools::iconvstreambuf::underflow ( )

overloaded from std::streambuf


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