1999-01-25 13:33:08 -05:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxOutputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxOutputStream}}\label{wxoutputstream}
|
|
|
|
|
1999-12-06 11:16:14 -05:00
|
|
|
wxOutputStream is an abstract base class which may not be used directly.
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxStreamBase}{wxstreambase}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/stream.h>
|
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
% -----------
|
|
|
|
% ctor & dtor
|
|
|
|
% -----------
|
2004-07-21 06:45:28 -04:00
|
|
|
|
2004-09-21 09:24:41 -04:00
|
|
|
\membersection{wxOutputStream::wxOutputStream}\label{wxoutputstreamctor}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
\func{}{wxOutputStream}{\void}
|
|
|
|
|
|
|
|
Creates a dummy wxOutputStream object.
|
|
|
|
|
2004-07-21 06:45:28 -04:00
|
|
|
|
2004-09-21 09:24:41 -04:00
|
|
|
\membersection{wxOutputStream::\destruct{wxOutputStream}}\label{wxoutputstreamdtor}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
\func{}{\destruct{wxOutputStream}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
2004-07-21 06:45:28 -04:00
|
|
|
|
|
|
|
\membersection{wxOutputStream::LastWrite}\label{wxoutputstreamlastwrite}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
1999-03-13 15:14:37 -05:00
|
|
|
\constfunc{size\_t}{LastWrite}{\void}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
2004-07-21 06:45:28 -04:00
|
|
|
Returns the number of bytes written during the last
|
|
|
|
\helpref{Write()}{wxoutputstreamwrite}. It may return $0$ even if there is no
|
|
|
|
error on the stream if it is only temporarily impossible to write to it.
|
|
|
|
|
1999-12-06 11:16:14 -05:00
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
\membersection{wxOutputStream::PutC}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
\func{void}{PutC}{\param{char}{ c}}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
Puts the specified character in the output queue and increments the
|
|
|
|
stream position.
|
1999-01-25 13:33:08 -05:00
|
|
|
|
2004-07-21 06:45:28 -04:00
|
|
|
|
2003-09-26 16:07:22 -04:00
|
|
|
\membersection{wxOutputStream::SeekO}\label{wxoutputstreamseeko}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
2004-04-11 16:58:56 -04:00
|
|
|
\func{off\_t}{SeekO}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
Changes the stream current position.
|
|
|
|
|
2004-04-11 16:58:56 -04:00
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{pos}{Offset to seek to.}
|
|
|
|
|
|
|
|
\docparam{mode}{One of {\bf wxFromStart}, {\bf wxFromEnd}, {\bf wxFromCurrent}.}
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
|
|
|
The new stream position or wxInvalidOffset on error.
|
|
|
|
|
2004-07-21 06:45:28 -04:00
|
|
|
|
2004-09-20 07:21:04 -04:00
|
|
|
\membersection{wxOutputStream::TellO}\label{wxoutputstreamtello}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
1999-03-13 15:14:37 -05:00
|
|
|
\constfunc{off\_t}{TellO}{\void}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
Returns the current stream position.
|
|
|
|
|
2004-07-21 06:45:28 -04:00
|
|
|
|
|
|
|
\membersection{wxOutputStream::Write}\label{wxoutputstreamwrite}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
1999-03-13 15:14:37 -05:00
|
|
|
\func{wxOutputStream\&}{Write}{\param{const void *}{buffer}, \param{size\_t}{ size}}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
2004-07-21 06:45:28 -04:00
|
|
|
Writes up to the specified amount of bytes using the data of {\it buffer}. Note
|
|
|
|
that not all data can always be written so you must check the number of bytes
|
|
|
|
really written to the stream using \helpref{LastWrite()}{wxoutputstreamlastwrite}
|
|
|
|
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.
|
1999-01-25 13:33:08 -05:00
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
This function returns a reference on the current object, so the user can test
|
|
|
|
any states of the stream right away.
|
1999-01-25 13:33:08 -05:00
|
|
|
|
1999-03-13 15:14:37 -05:00
|
|
|
\func{wxOutputStream\&}{Write}{\param{wxInputStream\&}{ stream\_in}}
|
1999-02-25 10:07:00 -05:00
|
|
|
|
|
|
|
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.
|
1999-01-25 13:33:08 -05:00
|
|
|
|