~zorba-coders/zorba/llvm

« back to all changes in this revision

Viewing changes to include/zorba/transcode_stream.h

1. Improved catch() for unit tests.
2. Improved bpackfail() for streambufs.
3. locale template function additions.
4. Enhanced aton(). Approved: Chris Hillery, Paul J. Lucas

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#ifndef ZORBA_TRANSCODE_STREAM_API_H
18
18
#define ZORBA_TRANSCODE_STREAM_API_H
19
19
 
20
 
#include <stdexcept>
21
 
#include <streambuf>
22
 
 
23
20
#include <zorba/config.h>
24
 
#include <zorba/internal/proxy.h>
25
21
#include <zorba/internal/streambuf.h>
26
22
#include <zorba/internal/unique_ptr.h>
27
23
 
28
24
namespace zorba {
29
 
 
30
 
typedef internal::ztd::proxy<std::streambuf> proxy_streambuf;
31
 
 
32
25
namespace transcode {
33
26
 
34
27
///////////////////////////////////////////////////////////////////////////////
108
101
  std::streamsize xsputn( char_type const*, std::streamsize );
109
102
 
110
103
private:
111
 
  std::unique_ptr<proxy_streambuf> proxy_buf_;
 
104
  std::unique_ptr<internal::proxy_streambuf> proxy_buf_;
112
105
 
113
106
  // forbid
114
107
  streambuf( streambuf const& );