SpectMorph
Public Member Functions | List of all members
SpectMorph::GenericOut Class Referenceabstract

Generic Output Stream. More...

#include <smgenericout.hh>

Inheritance diagram for SpectMorph::GenericOut:
SpectMorph::MemOut SpectMorph::StdioOut

Public Member Functions

virtual int put_byte (int c)=0
 
virtual int write (const void *ptr, size_t size)=0
 

Detailed Description

Generic Output Stream.

This class is the abstract base class for different (binary) output streams like "to memory", "to file", ...

Member Function Documentation

◆ put_byte()

virtual int SpectMorph::GenericOut::put_byte ( int  c)
pure virtual

Write one character into the output stream.

Parameters
ccharacter to be written
Returns
the character written, or EOF on error.

Implemented in SpectMorph::StdioOut, and SpectMorph::MemOut.

◆ write()

virtual int SpectMorph::GenericOut::write ( const void *  ptr,
size_t  size 
)
pure virtual

Write a block of data into the stream.

Parameters
ptrpointer to the data to be written
sizenumber of bytes to be written
Returns
the number of bytes successfully written (can be 0)

Implemented in SpectMorph::StdioOut, and SpectMorph::MemOut.


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