#include <readers.h>
Inheritance diagram for ID3_IStreamReader:
Public Member Functions | |
ID3_IStreamReader (istream &reader) | |
virtual | ~ID3_IStreamReader () |
virtual void | close () |
Close the reader. | |
virtual int_type | peekChar () |
Return the next character to be read without advancing the internal position. | |
virtual size_type | readChars (char buf[], size_type len) |
Read up to len chars into buf and advance the internal position accordingly. | |
virtual size_type | readChars (char_type buf[], size_type len) |
virtual pos_type | getBeg () |
Return the beginning position in the reader. | |
virtual pos_type | getCur () |
Return the current position in the reader. | |
virtual pos_type | getEnd () |
Return the ending position in the reader. | |
virtual pos_type | setCur (pos_type pos) |
Set the value of the internal position for reading. | |
Protected Member Functions | |
istream & | getReader () const |
Definition at line 34 of file readers.h.
ID3_IStreamReader::ID3_IStreamReader | ( | istream & | reader | ) | [inline] |
virtual ID3_IStreamReader::~ID3_IStreamReader | ( | ) | [inline, virtual] |
istream& ID3_IStreamReader::getReader | ( | ) | const [inline, protected] |
virtual void ID3_IStreamReader::close | ( | ) | [inline, virtual] |
Close the reader.
Any further actions on the reader should fail.
Implements ID3_Reader.
Reimplemented in ID3_IFStreamReader.
virtual int_type ID3_IStreamReader::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.
Read up to len
chars into buf and advance the internal position accordingly.
Returns the number of characters read into buf.
Definition at line 49 of file readers.h.
References ID3_Reader::readChars().
virtual pos_type ID3_IStreamReader::getBeg | ( | ) | [inline, virtual] |
virtual pos_type ID3_IStreamReader::getCur | ( | ) | [inline, virtual] |
virtual pos_type ID3_IStreamReader::getEnd | ( | ) | [inline, virtual] |
Return the ending position in the reader.
Reimplemented from ID3_Reader.
Definition at line 61 of file readers.h.
References ID3_Reader::getCur(), and ID3_Reader::setCur().