Ark Server API (ASE) - Wiki
|
#include <UnbufferedStreamBuf.h>
Public Member Functions | |
BasicUnbufferedStreamBuf () | |
~BasicUnbufferedStreamBuf () | |
virtual int_type | overflow (int_type c) |
virtual int_type | underflow () |
virtual int_type | uflow () |
virtual int_type | pbackfail (int_type c) |
virtual std::streamsize | xsgetn (char_type *p, std::streamsize count) |
Protected Types | |
typedef std::basic_streambuf< ch, tr > | Base |
typedef std::basic_ios< ch, tr > | IOS |
typedef ch | char_type |
typedef tr | char_traits |
typedef Base::int_type | int_type |
typedef Base::pos_type | pos_type |
typedef Base::off_type | off_type |
typedef IOS::openmode | openmode |
Static Protected Member Functions | |
static int_type | charToInt (char_type c) |
Private Member Functions | |
virtual int_type | readFromDevice () |
virtual int_type | writeToDevice (char_type) |
BasicUnbufferedStreamBuf (const BasicUnbufferedStreamBuf &) | |
BasicUnbufferedStreamBuf & | operator= (const BasicUnbufferedStreamBuf &) |
Private Attributes | |
int_type | _pb |
bool | _ispb |
This is an implementation of an unbuffered streambuf that greatly simplifies the implementation of custom streambufs of various kinds. Derived classes only have to override the methods readFromDevice() or writeToDevice().
Definition at line 32 of file UnbufferedStreamBuf.h.
|
protected |
Definition at line 40 of file UnbufferedStreamBuf.h.
|
protected |
Definition at line 43 of file UnbufferedStreamBuf.h.
|
protected |
Definition at line 42 of file UnbufferedStreamBuf.h.
|
protected |
Definition at line 44 of file UnbufferedStreamBuf.h.
|
protected |
Definition at line 41 of file UnbufferedStreamBuf.h.
|
protected |
Definition at line 46 of file UnbufferedStreamBuf.h.
|
protected |
Definition at line 47 of file UnbufferedStreamBuf.h.
|
protected |
Definition at line 45 of file UnbufferedStreamBuf.h.
|
inline |
Definition at line 50 of file UnbufferedStreamBuf.h.
|
inline |
Definition at line 58 of file UnbufferedStreamBuf.h.
|
private |
|
inlinestaticprotected |
Definition at line 139 of file UnbufferedStreamBuf.h.
|
private |
|
inlinevirtual |
Definition at line 62 of file UnbufferedStreamBuf.h.
|
inlinevirtual |
Definition at line 106 of file UnbufferedStreamBuf.h.
|
inlineprivatevirtual |
Reimplemented in Poco::NullStreamBuf.
Definition at line 145 of file UnbufferedStreamBuf.h.
|
inlinevirtual |
Definition at line 88 of file UnbufferedStreamBuf.h.
|
inlinevirtual |
Definition at line 70 of file UnbufferedStreamBuf.h.
|
inlineprivatevirtual |
Definition at line 150 of file UnbufferedStreamBuf.h.
|
inlinevirtual |
Some platforms (for example, Compaq C++) have buggy implementations of xsgetn that handle null buffers incorrectly. Anyway, it does not hurt to provide an optimized implementation of xsgetn for this streambuf implementation.
Definition at line 120 of file UnbufferedStreamBuf.h.
|
private |
Definition at line 156 of file UnbufferedStreamBuf.h.
|
private |
Definition at line 155 of file UnbufferedStreamBuf.h.