id3lib
3.8.3
|
#include <writers.h>
Public Member Functions | |
ID3_OStreamWriter (ostream &writer) | |
virtual | ~ID3_OStreamWriter () |
virtual void | close () |
Close the writer. | |
virtual void | flush () |
Flush the writer. | |
virtual int_type | writeChar (char_type ch) |
Write a single character and advance the internal position. | |
virtual size_type | writeChars (const char buf[], size_type len) |
Write up to len chars into buf and advance the internal position accordingly. | |
virtual size_type | writeChars (const char_type buf[], size_type len) |
Write up to len characters into buf and advance the internal position accordingly. | |
virtual pos_type | getBeg () |
Return the beginning position in the writer. | |
virtual pos_type | getCur () |
Return the next position that will be written to. | |
Protected Member Functions | |
ostream & | getWriter () const |
ID3_OStreamWriter::ID3_OStreamWriter | ( | ostream & | writer | ) | [inline] |
virtual ID3_OStreamWriter::~ID3_OStreamWriter | ( | ) | [inline, virtual] |
virtual void ID3_OStreamWriter::close | ( | ) | [inline, virtual] |
Close the writer.
Any further actions on the writer should fail.
Implements ID3_Writer.
Reimplemented in ID3_OFStreamWriter.
virtual void ID3_OStreamWriter::flush | ( | ) | [inline, virtual] |
virtual pos_type ID3_OStreamWriter::getBeg | ( | ) | [inline, virtual] |
Return the beginning position in the writer.
Reimplemented from ID3_Writer.
virtual pos_type ID3_OStreamWriter::getCur | ( | ) | [inline, virtual] |
Return the next position that will be written to.
Implements ID3_Writer.
ostream& ID3_OStreamWriter::getWriter | ( | ) | const [inline, protected] |
virtual int_type ID3_OStreamWriter::writeChar | ( | char_type | ch | ) | [inline, 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.
virtual size_type ID3_OStreamWriter::writeChars | ( | const char | buf[], |
size_type | len | ||
) | [inline, virtual] |
Write up to len
chars into buf and advance the internal position accordingly.
Returns the number of characters write into buf.
Reimplemented from ID3_Writer.
virtual size_type ID3_OStreamWriter::writeChars | ( | const char_type | buf[], |
size_type | len | ||
) | [inline, virtual] |
Write up to len
characters into buf and advance the internal position accordingly.
Returns the number of characters write 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.
Implements ID3_Writer.