Inheritance diagram for lfc::PutbackTextInput::
Public Methods | |
PutbackTextInput (_Input< char > &inputBase, long maxPutbackCnt=DEFAULT_PUTBACK_CNT) | |
~PutbackTextInput () throw () | |
virtual long | read (char *buffer, long count, bool bWaitAll=true) |
Reads from the stream. More... | |
virtual bool | hasMore () const |
Indicates whether the stream has more elements left in it. More... | |
virtual char | pop () |
| |
virtual void | resetInput () |
Resets this stream. More... | |
virtual long | maxPutbackCount () const throw () |
| |
virtual void | putback (long count) |
This unreads the given number of characters. More... | |
Static Public Attributes | |
const long | DEFAULT_PUTBACK_CNT = 256L |
Protected Methods | |
virtual void | readNewBuffer (bool bWaitAll) |
Loads a new half-buffer. More... | |
Protected Attributes | |
char * | m_buffer |
The buffer. More... | |
long | m_bufferPosition |
the current position in the buffer. More... | |
long | m_bufferSize |
the size of the entire buffer. More... | |
long | m_marker1 |
The marker positions. More... | |
long | m_marker2 |
The marker positions. More... | |
long | m_maxPutbackCnt |
the maximum putback count/half-buffer size. More... | |
long | m_putbackCnt |
how much has been putback. More... | |
bool | m_readTwice |
Indicates we've read two half-buffers. More... |
|
|
|
|
|
Reads from the stream.
|
|
Indicates whether the stream has more elements left in it.
Reimplemented from lfc::_Input. |
|
Reimplemented from lfc::_Input. |
|
Resets this stream.
Reimplemented from lfc::_Input. |
|
|
|
This unreads the given number of characters.
|
|
Loads a new half-buffer.
|
|
|
|
The buffer.
|
|
the current position in the buffer.
|
|
the size of the entire buffer.
|
|
The marker positions.
|
|
The marker positions.
|
|
the maximum putback count/half-buffer size.
|
|
how much has been putback.
|
|
Indicates we've read two half-buffers.
|