#include <io_decorators.h>
Inheritance diagram for dami::io::WindowedReader:
Public Member Functions | |
WindowedReader (ID3_Reader &reader) | |
WindowedReader (ID3_Reader &reader, size_type size) | |
WindowedReader (ID3_Reader &reader, pos_type beg, size_type size) | |
void | setWindow (pos_type beg, size_type size) |
pos_type | setBeg (pos_type) |
pos_type | setCur (pos_type cur) |
pos_type | setEnd (pos_type) |
pos_type | getCur () |
Return the current position in the reader. | |
pos_type | getBeg () |
Return the beginning position in the reader. | |
pos_type | getEnd () |
Return the ending position in the reader. | |
bool | inWindow () |
int_type | readChar () |
Read a single character and advance the internal position. | |
int_type | peekChar () |
Return the next character to be read without advancing the internal position. | |
size_type | readChars (char_type buf[], size_type len) |
size_type | readChars (char buf[], size_type len) |
void | close () |
Close the reader. |
Characters can only be read within this window.
Definition at line 43 of file io_decorators.h.
|
Definition at line 54 of file io_decorators.h. |
|
Definition at line 57 of file io_decorators.h. |
|
Definition at line 61 of file io_decorators.h. |
|
Close the reader. Any further actions on the reader should fail. Implements ID3_Reader. Definition at line 89 of file io_decorators.h. |
|
Return the beginning position in the reader.
Reimplemented from ID3_Reader. Definition at line 75 of file io_decorators.h. Referenced by ID3_TagImpl::ParseReader(). |
|
Return the current position in the reader.
Implements ID3_Reader. Definition at line 74 of file io_decorators.h. Referenced by dami::id3::v2::parse(), ID3_TagImpl::ParseReader(), readChars(), and setWindow(). |
|
Return the ending position in the reader.
Reimplemented from ID3_Reader. Definition at line 76 of file io_decorators.h. References _end. Referenced by ID3_TagImpl::ParseReader(), setBeg(), and setWindow(). |
|
Definition at line 78 of file io_decorators.h. |
|
Return the next character to be read without advancing the internal position. Returns END_OF_READER if there isn't a character to read. Implements ID3_Reader. Definition at line 126 of file io_decorators.cpp. References ID3_Reader::END_OF_READER, and ID3_Reader::peekChar(). |
|
Read a single character and advance the internal position. Note that the interal position may advance more than one byte for a single character read. Returns END_OF_READER if there isn't a character to read. Reimplemented from ID3_Reader. Definition at line 110 of file io_decorators.cpp. References ID3_Reader::END_OF_READER, and ID3_Reader::readChar(). Referenced by dami::io::readTrailingSpaces(). |
|
Definition at line 84 of file io_decorators.h. |
|
Definition at line 136 of file io_decorators.cpp. References getCur(), and ID3_Reader::readChars(). |
|
Definition at line 69 of file io_decorators.cpp. References ID3_Reader::getBeg(), and getEnd(). Referenced by ID3_TagImpl::ParseReader(), and setWindow(). |
|
Definition at line 68 of file io_decorators.h. Referenced by setWindow(). |
|
Definition at line 90 of file io_decorators.cpp. References ID3_Reader::getEnd(). Referenced by setWindow(). |
|
Definition at line 38 of file io_decorators.cpp. References getCur(), getEnd(), ID3_Reader::getEnd(), setBeg(), setCur(), setEnd(), and ID3_Reader::skipChars(). |