Contents Up Previous Next

wxOutputStream

Derived from

wxStreamBase

Include files

<wx/stream.h>

See also

wxStreamBuffer

wxOutputStream::wxOutputStream
wxOutputStream::~wxOutputStream
wxOutputStream::OutputStreamBuffer
wxOutputStream::LastWrite
wxOutputStream::PutC
wxOutputStream::SeekO
wxOutputStream::TellO
wxOutputStream::Write


wxOutputStream::wxOutputStream

wxOutputStream()

Creates a dummy wxOutputStream object.

wxOutputStream(wxStreamBuffer* sbuf)

Creates an input stream using the specified stream buffer sbuf. This stream buffer can point to another stream.


wxOutputStream::~wxOutputStream

~wxOutputStream()

Destructor.


wxOutputStream::OutputStreamBuffer

wxStreamBuffer * OutputStreamBuffer()

Returns the stream buffer associated with the output stream.


wxOutputStream::LastWrite

size_t LastWrite() const


wxOutputStream::PutC

void PutC(char c)

Puts the specified character in the output queue and increments the stream position.


wxOutputStream::SeekO

off_t SeekO(off_t pos, wxSeekMode mode)

Changes the stream current position.


wxOutputStream::TellO

off_t TellO() const

Returns the current stream position.


wxOutputStream::Write

wxOutputStream& Write(const void *buffer, size_t size)

Writes the specified amount of bytes using the data of buffer. WARNING! The buffer absolutely needs to have at least the specified size.

This function returns a reference on the current object, so the user can test any states of the stream right away.

wxOutputStream& Write(wxInputStream& stream_in)

Reads data from the specified input stream and stores them in the current stream. The data is read until an error is raised by one of the two streams.