id3lib 3.8.3
Public Member Functions | Protected Member Functions | List of all members
ID3_IOStreamWriter Class Reference

#include <writers.h>

Inheritance diagram for ID3_IOStreamWriter:
ID3_Writer ID3_FStreamWriter

Public Member Functions

 ID3_IOStreamWriter (iostream &writer)
 
virtual ~ID3_IOStreamWriter ()
 
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.
 
- Public Member Functions inherited from ID3_Writer
virtual pos_type getEnd ()
 Return the first position that can't be written to.
 
virtual size_type getSize ()
 Return the number of bytes written.
 
virtual size_type getMaxSize ()
 Return the maximum number of bytes that can be written.
 
virtual bool atEnd ()
 

Protected Member Functions

iostream & getWriter () const
 

Additional Inherited Members

- Public Types inherited from ID3_Writer
typedef uint32 size_type
 
typedef uint8 char_type
 
typedef uint32 pos_type
 
typedef int32 off_type
 
typedef int16 int_type
 
- Static Public Attributes inherited from ID3_Writer
static const int_type END_OF_WRITER = -1
 

Detailed Description

Definition at line 85 of file writers.h.

Constructor & Destructor Documentation

◆ ID3_IOStreamWriter()

ID3_IOStreamWriter::ID3_IOStreamWriter ( iostream & writer)
inline

Definition at line 92 of file writers.h.

◆ ~ID3_IOStreamWriter()

virtual ID3_IOStreamWriter::~ID3_IOStreamWriter ( )
inlinevirtual

Definition at line 93 of file writers.h.

Member Function Documentation

◆ close()

virtual void ID3_IOStreamWriter::close ( )
inlinevirtual

Close the writer.

Any further actions on the writer should fail.

Implements ID3_Writer.

Reimplemented in ID3_FStreamWriter.

Definition at line 95 of file writers.h.

◆ flush()

virtual void ID3_IOStreamWriter::flush ( )
inlinevirtual

Flush the writer.

Implements ID3_Writer.

Definition at line 96 of file writers.h.

◆ getBeg()

virtual pos_type ID3_IOStreamWriter::getBeg ( )
inlinevirtual

Return the beginning position in the writer.

Reimplemented from ID3_Writer.

Definition at line 118 of file writers.h.

◆ getCur()

virtual pos_type ID3_IOStreamWriter::getCur ( )
inlinevirtual

Return the next position that will be written to.

Implements ID3_Writer.

Definition at line 119 of file writers.h.

◆ getWriter()

iostream & ID3_IOStreamWriter::getWriter ( ) const
inlineprotected

Definition at line 90 of file writers.h.

◆ writeChar()

virtual int_type ID3_IOStreamWriter::writeChar ( char_type ch)
inlinevirtual

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 98 of file writers.h.

◆ writeChars() [1/2]

virtual size_type ID3_IOStreamWriter::writeChars ( const char buf[],
size_type len )
inlinevirtual

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.

Definition at line 107 of file writers.h.

◆ writeChars() [2/2]

virtual size_type ID3_IOStreamWriter::writeChars ( const char_type buf[],
size_type len )
inlinevirtual

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.

Definition at line 112 of file writers.h.


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

Generated for id3lib by doxygen 1.10.0