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

ID3_MemoryReader Class Reference

#include <readers.h>

Inheritance diagram for ID3_MemoryReader::

ID3_Reader List of all members.

Public Methods

 ID3_MemoryReader ()
 ID3_MemoryReader (const char_type *buf, size_type size)
 ID3_MemoryReader (const char *buf, size_type size)
virtual ~ID3_MemoryReader ()
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 characters into buf and advance the internal position accordingly. More...

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

virtual pos_type getBeg ()
 Return the beginning 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

void setBuffer (const char_type *buf, size_type size)

Constructor & Destructor Documentation

ID3_MemoryReader::ID3_MemoryReader   [inline]
 

Definition at line 102 of file readers.h.

References NULL.

ID3_MemoryReader::ID3_MemoryReader const char_type   buf,
size_type    size
[inline]
 

Definition at line 106 of file readers.h.

ID3_MemoryReader::ID3_MemoryReader const char *    buf,
size_type    size
[inline]
 

Definition at line 110 of file readers.h.

virtual ID3_MemoryReader::~ID3_MemoryReader   [inline, virtual]
 

Definition at line 114 of file readers.h.


Member Function Documentation

virtual void ID3_MemoryReader::close   [inline, virtual]
 

Close the reader.

Any further actions on the reader should fail.

Reimplemented from ID3_Reader.

Definition at line 115 of file readers.h.

virtual pos_type ID3_MemoryReader::getBeg   [inline, virtual]
 

Return the beginning position in the reader.

Reimplemented from ID3_Reader.

Definition at line 140 of file readers.h.

virtual pos_type ID3_MemoryReader::getCur   [inline, virtual]
 

Return the current position in the reader.

Reimplemented from ID3_Reader.

Definition at line 135 of file readers.h.

Referenced by ID3_Tag::Parse().

virtual pos_type ID3_MemoryReader::getEnd   [inline, virtual]
 

Return the ending position in the reader.

Reimplemented from ID3_Reader.

Definition at line 145 of file readers.h.

Referenced by ID3_Tag::Parse().

virtual int_type ID3_MemoryReader::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 117 of file readers.h.

References ID3_Reader::atEnd().

ID3_Reader::size_type ID3_MemoryReader::readChars char_type    buf[],
size_type    len
[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.

Reimplemented from ID3_Reader.

Definition at line 39 of file readers.cpp.

References ID3_Reader::size_type.

virtual size_type ID3_MemoryReader::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 129 of file readers.h.

References ID3_Reader::readChars().

void ID3_MemoryReader::setBuffer const char_type   buf,
size_type    size
[inline, protected]
 

Definition at line 95 of file readers.h.

virtual pos_type ID3_MemoryReader::setCur pos_type    pos [inline, virtual]
 

Set the value of the internal position for reading.

Reimplemented from ID3_Reader.

Definition at line 152 of file readers.h.

References ID3_Reader::getCur(), and ID3_Reader::getEnd().


The documentation for this class was generated from the following files:
Generated on Thu Jan 3 07:35:57 2002 for id3lib by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001