VMime
outputStreamAdapter Class Reference
Inheritance diagram for outputStreamAdapter:
Collaboration diagram for outputStreamAdapter:

Public Member Functions

 outputStreamAdapter (std::ostream &os)
 
void flush ()
 
- Public Member Functions inherited from outputStream
void write (const byte_t *const data, const size_t count)
 
void write (const char *const data, const size_t count)
 
template<int N>
void write (const char(&data)[N])
 
- Public Member Functions inherited from stream
virtual ~stream ()
 
virtual size_t getBlockSize ()
 

Protected Member Functions

void writeImpl (const byte_t *const data, const size_t count)
 
- Protected Member Functions inherited from object
 object ()
 
 object (const object &)
 
objectoperator= (const object &)
 
virtual ~object ()
 

Detailed Description

An adapter class for C++ standard output streams.

Constructor & Destructor Documentation

outputStreamAdapter ( std::ostream &  os)
Parameters
osoutput stream to wrap

Member Function Documentation

void flush ( )
virtual

Flush this output stream and forces any buffered output bytes to be written out to the stream.

Implements outputStream.

void writeImpl ( const byte_t *const  data,
const size_t  count 
)
protectedvirtual

Write data to the stream.

This is the method to be implemented is subclasses.

Parameters
databuffer containing data to write
countnumber of bytes to write

Implements outputStream.


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