Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 944 Bytes

OutputStream.md

File metadata and controls

49 lines (29 loc) · 944 Bytes

OutputStream

class OutputStream

Inherited by: MemoryOutputStream, StdStreamOutputStream and StdStringOutputStream.

Required header: <Eclog/OutputStream.h>

The OutputStream abstract class represents an output stream of characters.

Member functions

Name Description
state Checks whether the stream is in good state.
write Inserts characters to the stream.

state

virtual bool state() const;

Checks whether the stream is in good state.

Return value

bool true if the stream is good, false otherwise.


write

virtual void write(const char* buffer, size_t size);

Inserts characters to the stream.

Parameters

char* buffer The buffer to write.

size_t size The number of characters to write.