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

ID3_MemoryWriter Class Reference

#include <writers.h>

Inheritance diagram for ID3_MemoryWriter::

ID3_Writer List of all members.

Public Methods

 ID3_MemoryWriter ()
 ID3_MemoryWriter (char_type buf[], size_t size)
virtual ~ID3_MemoryWriter ()
virtual void close ()
 Close the writer. More...

virtual void flush ()
 Flush the writer. More...

virtual size_type writeChars (const char buf[], size_type len)
 Write up to len chars from buf and advance the internal position accordingly. More...

virtual size_type writeChars (const char_type buf[], size_type len)
 Write up to len chars from buf and advance the internal position accordingly. More...

virtual pos_type getCur ()
 Return the next position that will be written to. More...

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

virtual pos_type getEnd ()
 Return the first position that can't be written to. More...


Protected Methods

void setBuffer (char_type *buf, size_t size)

Constructor & Destructor Documentation

ID3_MemoryWriter::ID3_MemoryWriter ( ) [inline]
 

Definition at line 149 of file writers.h.

ID3_MemoryWriter::ID3_MemoryWriter ( char_type buf[],
size_t size ) [inline]
 

Parameters:
buf  
size  

Definition at line 153 of file writers.h.

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

Definition at line 157 of file writers.h.


Member Function Documentation

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

Close the writer.

Any further actions on the writer should fail. *

Reimplemented from ID3_Writer.

Definition at line 158 of file writers.h.

void ID3_MemoryWriter::flush ( ) [inline, virtual]
 

Flush the writer.

*

Reimplemented from ID3_Writer.

Definition at line 159 of file writers.h.

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

Return the beginning position in the writer *.

Reimplemented from ID3_Writer.

Definition at line 182 of file writers.h.

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

Return the next position that will be written to.

Reimplemented from ID3_Writer.

Definition at line 177 of file writers.h.

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

Return the first position that can't be written to.

A return value of -1 indicates no (reasonable) limit to the writer.

Reimplemented from ID3_Writer.

Definition at line 187 of file writers.h.

void ID3_MemoryWriter::setBuffer ( char_type * buf,
size_t size ) [inline, protected]
 

Parameters:
buf  
size  

Definition at line 142 of file writers.h.

Referenced by ID3_MemoryWriter().

size_type ID3_MemoryWriter::writeChars ( const char_type buf[],
size_type len ) [inline, virtual]
 

Write up to len chars from buf and advance the internal position accordingly.

Returns the number of characters written from buf.

Parameters:
buf  
len  

Reimplemented from ID3_Writer.

Definition at line 168 of file writers.h.

size_type ID3_MemoryWriter::writeChars ( const char buf[],
size_type len ) [inline, virtual]
 

Write up to len chars from buf and advance the internal position accordingly.

Returns the number of characters written from buf.

Parameters:
buf  
len  

Reimplemented from ID3_Writer.

Definition at line 164 of file writers.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