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

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.


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.

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

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.

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.

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

Referenced by writeChars().

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[],
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.

References ID3_Writer::atEnd(), getCur(), and writeChar().


The documentation for this class was generated from the following files:
Generated on Fri Sep 17 11:22:35 2004 for id3lib by doxygen 1.3.5