id3lib 3.8.3
|
#include <io_decorators.h>
Public Member Functions | |
CharReader (ID3_Reader &reader) | |
virtual | ~CharReader () |
size_type | readChars (char_type buf[], size_type len) |
Read len characters into the array buf . | |
size_type | readChars (char buf[], size_type len) |
void | close () |
Close the reader. | |
int_type | peekChar () |
Return the next character to be read without advancing the internal position. | |
pos_type | getBeg () |
Return the beginning position in the reader. | |
pos_type | getCur () |
Return the current position in the reader. | |
pos_type | getEnd () |
Return the ending position in the reader. | |
pos_type | setCur (pos_type cur) |
Set the value of the current position for reading. | |
Protected Attributes | |
ID3_Reader & | _reader |
Definition at line 92 of file io_decorators.h.
dami::io::CharReader::CharReader | ( | ID3_Reader & | reader | ) | [inline] |
Definition at line 101 of file io_decorators.h.
virtual dami::io::CharReader::~CharReader | ( | ) | [inline, virtual] |
Definition at line 102 of file io_decorators.h.
void dami::io::CharReader::close | ( | ) | [inline, virtual] |
Close the reader.
Any further actions on the reader should fail.
Implements ID3_Reader.
Definition at line 115 of file io_decorators.h.
pos_type dami::io::CharReader::getBeg | ( | ) | [inline, virtual] |
Return the beginning position in the reader.
Reimplemented from ID3_Reader.
Definition at line 118 of file io_decorators.h.
pos_type dami::io::CharReader::getCur | ( | ) | [inline, virtual] |
Return the current position in the reader.
Implements ID3_Reader.
Definition at line 119 of file io_decorators.h.
pos_type dami::io::CharReader::getEnd | ( | ) | [inline, virtual] |
Return the ending position in the reader.
Reimplemented from ID3_Reader.
Definition at line 120 of file io_decorators.h.
int_type dami::io::CharReader::peekChar | ( | ) | [inline, virtual] |
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 116 of file io_decorators.h.
Reimplemented from ID3_Reader.
Definition at line 110 of file io_decorators.h.
ID3_Reader::size_type io::CharReader::readChars | ( | char_type | buf[], |
size_type | len | ||
) | [virtual] |
Read len
characters into the array buf
.
Since the stream needs might have been unsynced, this function copies the characters one at a time.
Implements ID3_Reader.
Definition at line 147 of file io_decorators.cpp.
Set the value of the current position for reading.
Implements ID3_Reader.
Definition at line 122 of file io_decorators.h.
ID3_Reader& dami::io::CharReader::_reader [protected] |
Definition at line 97 of file io_decorators.h.