18 #ifndef LIBCWD_PRIVATE_BUFFERSTREAM_H 
   19 #define LIBCWD_PRIVATE_BUFFERSTREAM_H 
   21 #ifndef LIBCWD_CONFIG_H 
   30     class bufferstream_ct : 
public std::ostream
 
   33       typedef char char_type;
 
   34       typedef std::char_traits<char> traits_type;
 
   36       typedef auto_internal_allocator allocator_type;
 
   38       typedef ::std::allocator<char_type> allocator_type;
 
   40       typedef traits_type::int_type int_type;
 
   41       typedef traits_type::pos_type pos_type;
 
   42       typedef traits_type::off_type off_type;
 
   43       typedef std::basic_string<char_type, traits_type, allocator_type> string_type;
 
   44       typedef std::basic_stringbuf<char_type, traits_type, allocator_type> stringbuf_type;
 
   47       stringbuf_type* M_stringbuf;
 
   51       bufferstream_ct(stringbuf_type* sb) : std::basic_ostream<char, std::char_traits<char> >(sb), M_stringbuf(sb) { }
 
   52       ~bufferstream_ct() { }
 
   54       stringbuf_type* rdbuf(
void)
 const { 
return M_stringbuf; }
 
   55       string_type str(
void)
 const { 
return M_stringbuf->str(); }
 
   56       void str(string_type 
const& s) { M_stringbuf->str(s); }
 
   62 #endif // LIBCWD_PRIVATE_BUFFERSTREAM_H