33#include <Pt/StreamBuffer.h>
37#if defined(_MSC_VER) && defined(_WIN32_WCE)
39 template class PT_API std::basic_ios<char>;
40 template class PT_API std::basic_istream<char>;
41 template class PT_API std::basic_ostream<char>;
42 template class PT_API std::basic_iostream<char>;
46 template class PT_API std::basic_ios<Pt::Char>;
47 template class PT_API std::basic_istream<Pt::Char>;
48 template class PT_API std::basic_ostream<Pt::Char>;
49 template class PT_API std::basic_iostream<Pt::Char>;
69template <
typename CharT,
typename TraitsT = std::
char_traits<CharT> >
73 typedef CharT char_type;
74 typedef TraitsT traits_type;
75 typedef typename TraitsT::int_type int_type;
76 typedef typename TraitsT::pos_type pos_type;
77 typedef typename TraitsT::off_type off_type;
125template <
typename CharT,
typename TraitsT = std::
char_traits<CharT> >
129 typedef CharT char_type;
130 typedef TraitsT traits_type;
131 typedef typename TraitsT::int_type int_type;
132 typedef typename TraitsT::pos_type pos_type;
133 typedef typename TraitsT::off_type off_type;
178template <
typename CharT,
typename TraitsT = std::
char_traits<CharT> >
182 typedef CharT char_type;
183 typedef TraitsT traits_type;
184 typedef typename TraitsT::int_type int_type;
185 typedef typename TraitsT::pos_type pos_type;
186 typedef typename TraitsT::off_type off_type;
224template <
typename CharT,
typename TraitsT>
226: std::basic_istream<CharT>(sb)
232template <
typename CharT,
typename TraitsT>
235 if(_buffer && this->rdbuf() == _buffer)
236 return _buffer->speekn(
buffer, n);
248template <
typename CharT,
typename TraitsT>
250: std::basic_ostream<CharT>(sb)
256template <
typename CharT,
typename TraitsT>
259 if( ! _buffer || this->rdbuf() != _buffer )
262 std::streamsize avail = _buffer->out_avail();
268 n = std::min(avail, n);
269 return _buffer->sputn(
buffer, n);
273template <
typename CharT,
typename TraitsT>
275: std::basic_iostream<CharT>(sb)
281template <
typename CharT,
typename TraitsT>
284 if(_buffer && this->rdbuf() == _buffer)
285 return _buffer->speekn(
buffer, n);
297template <
typename CharT,
typename TraitsT>
300 if( ! _buffer || this->rdbuf() != _buffer )
303 std::streamsize avail = _buffer->out_avail();
309 n = std::min(avail, n);
310 return _buffer->sputn(
buffer, n);
BasicStreamBuffer< char > * buffer()
Definition IOStream.h:209
std::streamsize writesome(CharT *buffer, std::streamsize n)
Write as much data as fits in buffer.
Definition IOStream.h:298
BasicIOStream(BasicStreamBuffer< CharT > *sb=0)
Constructor.
Definition IOStream.h:274
~BasicIOStream()
Destructor.
Definition IOStream.h:193
std::streamsize peeksome(CharT *buffer, std::streamsize n)
Peeks bytes in the stream buffer.
Definition IOStream.h:282
void setBuffer(BasicStreamBuffer< CharT > *sb)
Sets the buffer.
Definition IOStream.h:213
BasicStreamBuffer< char > * buffer()
Definition IOStream.h:96
std::streamsize peeksome(CharT *buffer, std::streamsize n)
Peeks bytes in the stream buffer.
Definition IOStream.h:233
~BasicIStream()
Destructor.
Definition IOStream.h:84
void setBuffer(BasicStreamBuffer< CharT > *sb)
Sets the buffer.
Definition IOStream.h:100
BasicIStream(BasicStreamBuffer< CharT > *sb=0)
Constructor.
Definition IOStream.h:225
BasicStreamBuffer< char > * buffer()
Definition IOStream.h:148
std::streamsize writesome(CharT *buffer, std::streamsize n)
Write as much data as fits in buffer.
Definition IOStream.h:257
BasicOStream(BasicStreamBuffer< CharT > *sb=0)
Constructor.
Definition IOStream.h:249
void setBuffer(BasicStreamBuffer< CharT > *sb)
Sets the buffer.
Definition IOStream.h:152
~BasicOStream()
Destructor.
Definition IOStream.h:140
Stream buffer with peek and available output.
Definition StreamBuffer.h:75
Core module.
Definition Allocator.h:33