dami::io::UnsyncedWriter Class Reference

#include <io_decorators.h>

Inheritance diagram for dami::io::UnsyncedWriter:

ID3_Writer

List of all members.

Public Member Functions

 UnsyncedWriter (ID3_Writer &writer)
size_type getNumSyncs () const
int_type writeChar (char_type ch)
 Write a single character and advance the internal position.
void flush ()
 Flush the writer.
size_type writeChars (const char_type[], size_type len)
 Write len characters into the array buf.
size_type writeChars (const char buf[], size_type len)
void close ()
 Close the writer.
pos_type getBeg ()
 Return the beginning position in the writer.
pos_type getCur ()
 Return the next position that will be written to.
pos_type getEnd ()
 Return the first position that can't be written to.


Detailed Description

Definition at line 152 of file io_decorators.h.


Constructor & Destructor Documentation

dami::io::UnsyncedWriter::UnsyncedWriter ( ID3_Writer writer  )  [inline]

Definition at line 161 of file io_decorators.h.


Member Function Documentation

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

Close the writer.

Any further actions on the writer should fail.

Implements ID3_Writer.

Definition at line 180 of file io_decorators.h.

void io::UnsyncedWriter::flush (  )  [virtual]

Flush the writer.

Implements ID3_Writer.

Definition at line 229 of file io_decorators.cpp.

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

Return the beginning position in the writer.

Reimplemented from ID3_Writer.

Definition at line 182 of file io_decorators.h.

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

Return the next position that will be written to.

Implements ID3_Writer.

Definition at line 183 of file io_decorators.h.

pos_type dami::io::UnsyncedWriter::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 184 of file io_decorators.h.

size_type dami::io::UnsyncedWriter::getNumSyncs (  )  const [inline]

Definition at line 165 of file io_decorators.h.

ID3_Writer::int_type io::UnsyncedWriter::writeChar ( char_type  ch  )  [virtual]

Write a single character and advance the internal position.

Note that the interal position may advance more than one byte for a single character write. Returns END_OF_WRITER if there isn't a character to write.

Reimplemented from ID3_Writer.

Definition at line 218 of file io_decorators.cpp.

size_type dami::io::UnsyncedWriter::writeChars ( const char  buf[],
size_type  len 
) [inline, virtual]

Reimplemented from ID3_Writer.

Definition at line 175 of file io_decorators.h.

ID3_Writer::size_type io::UnsyncedWriter::writeChars ( const char_type  buf[],
size_type  len 
) [virtual]

Write 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_Writer.

Definition at line 240 of file io_decorators.cpp.


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

Generated on Wed Aug 19 04:05:39 2009 for id3lib by  doxygen 1.5.9