Contents Up Previous Next

wxOutputStream

wxOutputStream is an abstract base class which may not be used directly.

Derived from

wxStreamBase

Include files

<wx/stream.h>

Members

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


wxOutputStream::wxOutputStream

wxOutputStream()

Creates a dummy wxOutputStream object.


wxOutputStream::~wxOutputStream

~wxOutputStream()

Destructor.


wxOutputStream::LastWrite

size_t LastWrite() const

Returns the number of bytes written during the last Write().


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.