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

dami::io::CharReader Class Reference

#include <io_decorators.h>

Inheritance diagram for dami::io::CharReader:

ID3_Reader dami::io::LineFeedReader dami::io::UnsyncedReader List of all members.

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

Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Referenced by dami::io::UnsyncedReader::readChar(), and dami::io::LineFeedReader::readChar().

size_type dami::io::CharReader::readChars char  buf[],
size_type  len
[inline, virtual]
 

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.

References ID3_Reader::atEnd(), NULL, ID3_Reader::readChar(), and ID3_Reader::size_type.

pos_type dami::io::CharReader::setCur pos_type  cur  )  [inline, virtual]
 

Set the value of the current position for reading.

Implements ID3_Reader.

Definition at line 122 of file io_decorators.h.


Member Data Documentation

ID3_Reader& dami::io::CharReader::_reader [protected]
 

Definition at line 97 of file io_decorators.h.


The documentation for this class was generated from the following files:
Generated on Fri Sep 17 11:22:35 2004 for id3lib by doxygen 1.3.5