Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ID3_IStreamReader Class Reference

#include <readers.h>

Inheritance diagram for ID3_IStreamReader::

ID3_Reader ID3_IFStreamReader List of all members.

Public Methods

 ID3_IStreamReader (istream &reader)
virtual ~ID3_IStreamReader ()
virtual void close ()
 Close the reader. More...

virtual int_type peekChar ()
 Return the next character to be read without advancing the internal position. More...

virtual size_type readChars (char buf[], size_type len)
 Read up to len chars into buf and advance the internal position accordingly. More...

virtual size_type readChars (char_type buf[], size_type len)
 Read up to len chars into buf and advance the internal position accordingly. More...

virtual pos_type getBeg ()
 Return the beginning position in the reader. More...

virtual pos_type getCur ()
 Return the current position in the reader. More...

virtual pos_type getEnd ()
 Return the ending position in the reader. More...

virtual pos_type setCur (pos_type pos)
 Set the value of the internal position for reading. More...


Protected Methods

istream& getReader () const

Constructor & Destructor Documentation

ID3_IStreamReader::ID3_IStreamReader ( istream & reader ) [inline]
 

Parameters:
reader  

Definition at line 41 of file readers.h.

ID3_IStreamReader::~ID3_IStreamReader ( ) [inline, virtual]
 

Definition at line 42 of file readers.h.


Member Function Documentation

void ID3_IStreamReader::close ( ) [inline, virtual]
 

Close the reader.

Any further actions on the reader should fail.

Reimplemented from ID3_Reader.

Reimplemented in ID3_IFStreamReader.

Definition at line 43 of file readers.h.

pos_type ID3_IStreamReader::getBeg ( ) [inline, virtual]
 

Return the beginning position in the reader.

Reimplemented from ID3_Reader.

Definition at line 60 of file readers.h.

pos_type ID3_IStreamReader::getCur ( ) [inline, virtual]
 

Return the current position in the reader.

Reimplemented from ID3_Reader.

Definition at line 61 of file readers.h.

Referenced by ID3_MemoryReader::setCur().

pos_type ID3_IStreamReader::getEnd ( ) [inline, virtual]
 

Return the ending position in the reader.

Reimplemented from ID3_Reader.

Definition at line 62 of file readers.h.

Referenced by ID3_MemoryReader::setCur().

istream & ID3_IStreamReader::getReader ( ) const [inline, protected]
 

Definition at line 39 of file readers.h.

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.

Reimplemented from ID3_Reader.

Definition at line 45 of file readers.h.

size_type ID3_IStreamReader::readChars ( char_type buf[],
size_type len ) [inline, virtual]
 

Read up to len chars into buf and advance the internal position accordingly.

Returns the number of characters read into buf.

Parameters:
buf  
len  

Reimplemented from ID3_Reader.

Definition at line 54 of file readers.h.

size_type ID3_IStreamReader::readChars ( char buf[],
size_type len ) [inline, virtual]
 

Read up to len chars into buf and advance the internal position accordingly.

Returns the number of characters read into buf.

Parameters:
buf  
len  

Reimplemented from ID3_Reader.

Definition at line 50 of file readers.h.

Referenced by ID3_MemoryReader::readChars().

pos_type ID3_IStreamReader::setCur ( pos_type pos ) [inline, virtual]
 

Set the value of the internal position for reading.

Parameters:
pos  

Reimplemented from ID3_Reader.

Definition at line 73 of file readers.h.


The documentation for this class was generated from the following file:
Generated at Sat Sep 8 15:51:13 2001 for id3lib by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001