#include <subStreamBuf.h>
Public Member Functions | |
SubStreamBuf () | |
virtual | ~SubStreamBuf () |
void | open (istream *source, streampos start, streampos end) |
void | close () |
virtual streampos | seekoff (streamoff off, ios_seekdir dir, ios_openmode mode) |
Implements seeking within the stream. | |
virtual streampos | seekpos (streampos pos, ios_openmode mode) |
A variant on seekoff() to implement seeking within a stream. | |
Protected Member Functions | |
virtual int | overflow (int c) |
Called by the system ostream implementation when its internal buffer is filled, plus one character. | |
virtual int | sync (void) |
Called by the system iostream implementation to implement a flush operation. | |
virtual int | underflow (void) |
Called by the system istream implementation when its internal buffer needs more characters. | |
Private Attributes | |
istream * | _source |
streampos | _start |
streampos | _end |
streampos | _cur |
size_t | _unused |
Definition at line 34 of file subStreamBuf.h.
|
Definition at line 65 of file subStreamBuf.cxx. |
|
Definition at line 112 of file subStreamBuf.cxx. |
|
Definition at line 142 of file subStreamBuf.cxx. |
|
Definition at line 124 of file subStreamBuf.cxx. References _cur, _end, _source, _start, _unused, and NULL. Referenced by ISubStream::ISubStream(). |
|
Called by the system ostream implementation when its internal buffer is filled, plus one character.
Definition at line 255 of file subStreamBuf.cxx. |
|
Implements seeking within the stream.
Definition at line 159 of file subStreamBuf.cxx. References _end, _source, _start, grab_lock(), and release_lock(). |
|
A variant on seekoff() to implement seeking within a stream. The MSDN Library claims that it is only necessary to redefine seekoff(), and not seekpos() as well, as the default implementation of seekpos() is supposed to map to seekoff() exactly as I am doing here; but in fact it must do something else, because seeking didn't work on Windows until I redefined this function as well. Definition at line 240 of file subStreamBuf.cxx. |
|
Called by the system iostream implementation to implement a flush operation.
Definition at line 271 of file subStreamBuf.cxx. |
|
Called by the system istream implementation when its internal buffer needs more characters.
Definition at line 289 of file subStreamBuf.cxx. References size_t. |
|
Definition at line 54 of file subStreamBuf.h. Referenced by close(), open(), and ~SubStreamBuf(). |
|
Definition at line 53 of file subStreamBuf.h. Referenced by open(), seekoff(), sync(), and ~SubStreamBuf(). |
|
Definition at line 51 of file subStreamBuf.h. Referenced by open(), seekoff(), sync(), and ~SubStreamBuf(). |
|
Definition at line 52 of file subStreamBuf.h. Referenced by open(), seekoff(), and ~SubStreamBuf(). |
|
Definition at line 55 of file subStreamBuf.h. Referenced by open(), sync(), and ~SubStreamBuf(). |