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)
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

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

Definition at line 165 of file io_decorators.h.

Referenced by dami::id3::v2::render().

ID3_Writer::int_type io::UnsyncedWriter::writeChar ( char_type  ch  ) 

Definition at line 218 of file io_decorators.cpp.

References ID3_Writer::writeChar().

Referenced by writeChars().

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

Flush the writer.

Implements ID3_Writer.

Definition at line 229 of file io_decorators.cpp.

References ID3_Writer::flush(), and ID3_Writer::writeChar().

Referenced by dami::id3::v2::render().

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

Write len characters into the array buf.

Since the stream needs might have been unsynced, this function copies the characters one at a time.

Definition at line 240 of file io_decorators.cpp.

References getCur(), and writeChar().

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

Definition at line 175 of file io_decorators.h.

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.

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.

Referenced by writeChars().

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.


The documentation for this class was generated from the following files:
Generated on Wed Sep 12 12:54:30 2007 for id3lib by  doxygen 1.5.1