wxoutputstreamwxoutputstream is an abstract base class which may not be used directly. derived from include files <wx/stream.h> members
wxoutputstream::wxoutputstream
wxoutputstream::wxoutputstreamwxoutputstream() creates a dummy wxoutputstream object.
wxoutputstream::~wxoutputstream~wxoutputstream() destructor.
wxoutputstream::closebool close() closes the stream, returning false if an error occurs. the stream is closed implicitly in the destructor if close() is not called explicitly. if this stream wraps another stream or some other resource such as a file, then the underlying resource is closed too if it is owned by this stream, or left open otherwise.
wxoutputstream::lastwritesize_t lastwrite() const returns the number of bytes written during the last write(). it may return 0 even if there is no error on the stream if it is only temporarily impossible to write to it.
wxoutputstream::putcvoid putc(char c) puts the specified character in the output queue and increments the stream position.
wxoutputstream::seekooff_t seeko(off_t pos, wxseekmode mode = wxfromstart) changes the stream current position. parameters pos
mode
return value the new stream position or wxinvalidoffset on error.
wxoutputstream::tellooff_t tello() const returns the current stream position.
wxoutputstream::writewxoutputstream& write(const void *buffer, size_t size) writes up to the specified amount of bytes using the data of buffer. note that not all data can always be written so you must check the number of bytes really written to the stream using lastwrite() when this function returns. in some cases (for example a write end of a pipe which is currently full) it is even possible that there is no errors and zero bytes have been written. 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.
|