Classes | Namespaces | Typedefs | Functions
transcode_stream.h File Reference
#include <stdexcept>
#include <streambuf>
#include <string>
#include <zorba/config.h>
#include <zorba/internal/proxy.h>
#include <zorba/internal/unique_ptr.h>
Include dependency graph for transcode_stream.h:

Go to the source code of this file.

Classes

class  zorba::transcode::auto_attach< StreamType >
 A transcode::auto_attach is a class that attaches a transcode::streambuf to a stream and automatically detaches it when the auto_attach object is destroyed. More...
class  zorba::transcode::stream< StreamType >
 A transcode::stream is used to wrap a C++ standard I/O stream with a transcode::streambuf so that transcoding and the management of the streambuf happens automatically. More...
class  zorba::transcode::streambuf
 A transcode::streambuf is-a std::streambuf for transcoding character encodings from/to UTF-8 on-the-fly. More...

Namespaces

namespace  zorba
 Copyright 2006-2011 The FLWOR Foundation.
namespace  zorba::internal
namespace  zorba::transcode

Typedefs

typedef internal::ztd::proxy
< std::streambuf > 
zorba::proxy_streambuf

Functions

ZORBA_DLL_PUBLIC
zorba::transcode::streambuf
zorba::internal::alloc_streambuf (char const *charset, std::streambuf *orig)
template<typename charT , typename Traits >
void zorba::transcode::attach (std::basic_ios< charT, Traits > &ios, char const *charset)
 Attaches a transcode::streambuf to a stream.
ZORBA_DLL_PUBLIC void zorba::internal::dealloc_streambuf (zorba::transcode::streambuf *)
template<typename charT , typename Traits >
void zorba::transcode::detach (std::basic_ios< charT, Traits > &ios)
 Detaches a previously attached transcode::streambuf from a stream.
ZORBA_DLL_PUBLIC int zorba::internal::get_streambuf_index ()
template<typename charT , typename Traits >
bool zorba::transcode::is_attached (std::basic_ios< charT, Traits > &ios)
 Checks whether the given stream has a transcode::streambuf attached.
ZORBA_DLL_PUBLIC bool zorba::transcode::is_necessary (char const *charset)
 Checks whether it would be necessary to transcode from the given character encoding to UTF-8.
ZORBA_DLL_PUBLIC bool zorba::transcode::is_supported (char const *charset)
 Checks whether the given character set is supported for transcoding.
ZORBA_DLL_PUBLIC void zorba::internal::stream_callback (std::ios_base::event, std::ios_base &, int index)
blog comments powered by Disqus