dami::io::StringReader Class Reference

#include <io_strings.h>

Inheritance diagram for dami::io::StringReader:

ID3_Reader

List of all members.

Public Member Functions

 StringReader (const String &string)
virtual ~StringReader ()
virtual void close ()
 Close the reader.
virtual int_type peekChar ()
 Return the next character to be read without advancing the internal position.
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)
 Read up to len characters into buf and advance the internal position accordingly.
virtual pos_type getCur ()
 Return the current position in the reader.
virtual pos_type getBeg ()
 Return the beginning 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.
virtual bool atEnd ()
virtual size_type skipChars (size_type len)
 Skip up to len chars in the stream and advance the internal position accordingly.


Detailed Description

Definition at line 43 of file io_strings.h.


Constructor & Destructor Documentation

dami::io::StringReader::StringReader ( const String &  string  )  [inline]

Definition at line 48 of file io_strings.h.

virtual dami::io::StringReader::~StringReader (  )  [inline, virtual]

Definition at line 49 of file io_strings.h.


Member Function Documentation

virtual bool dami::io::StringReader::atEnd (  )  [inline, virtual]

Reimplemented from ID3_Reader.

Definition at line 100 of file io_strings.h.

virtual void dami::io::StringReader::close (  )  [inline, virtual]

Close the reader.

Any further actions on the reader should fail.

Implements ID3_Reader.

Definition at line 51 of file io_strings.h.

virtual pos_type dami::io::StringReader::getBeg (  )  [inline, virtual]

Return the beginning position in the reader.

Reimplemented from ID3_Reader.

Definition at line 81 of file io_strings.h.

virtual pos_type dami::io::StringReader::getCur (  )  [inline, virtual]

Return the current position in the reader.

Implements ID3_Reader.

Definition at line 76 of file io_strings.h.

virtual pos_type dami::io::StringReader::getEnd (  )  [inline, virtual]

Return the ending position in the reader.

Reimplemented from ID3_Reader.

Definition at line 86 of file io_strings.h.

virtual int_type dami::io::StringReader::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 52 of file io_strings.h.

virtual size_type dami::io::StringReader::readChars ( char_type  buf[],
size_type  len 
) [inline, virtual]

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

Returns the number of characters read into buf. Note that the value returned may be less than the number of bytes that the internal position advances, due to multi-byte characters.

Implements ID3_Reader.

Definition at line 68 of file io_strings.h.

size_type dami::io::StringReader::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.

Reimplemented from ID3_Reader.

Definition at line 64 of file io_strings.h.

virtual pos_type dami::io::StringReader::setCur ( pos_type  pos  )  [inline, virtual]

Set the value of the internal position for reading.

Implements ID3_Reader.

Definition at line 93 of file io_strings.h.

virtual size_type dami::io::StringReader::skipChars ( size_type  len  )  [inline, virtual]

Skip up to len chars in the stream and advance the internal position accordingly.

Returns the number of characters actually skipped (may be less than requested).

Reimplemented from ID3_Reader.

Definition at line 105 of file io_strings.h.


The documentation for this class was generated from the following file:

Generated on Wed Sep 2 12:44:43 2009 for id3lib by  doxygen 1.5.9