1999-01-22 19:06:16 +00:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxStreamBase
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\section{\class{wxStreamBase}}\label{wxstreambase}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
None
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxStreamBuffer}{wxstreambuffer}
|
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% Members
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
% -----------
|
|
|
|
% ctor & dtor
|
|
|
|
% -----------
|
|
|
|
|
|
|
|
\membersection{wxStreamBase::wxStreamBase}
|
|
|
|
\func{}{wxStreamBase}{\void}
|
|
|
|
|
|
|
|
Creates a dummy stream object.
|
|
|
|
|
|
|
|
\membersection{wxStreamBase::\destruct{wxStreamBase}}
|
|
|
|
\func{}{\destruct{wxStreamBase}}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
\membersection{wxStreamBase::LastError}
|
|
|
|
\constfunc{wxStreamError}{LastError}{\void}
|
|
|
|
|
|
|
|
This function returns the last happened error. It is of the form:
|
|
|
|
% TODOTODOTODOTODOTODOTODOTODO
|
|
|
|
|
|
|
|
\membersection{wxStreamBase::StreamSize}
|
|
|
|
\constfunc{size_t}{StreamSize}{\void}
|
|
|
|
|
|
|
|
This function returns the size of the stream. (E.g. for a file it the size of
|
|
|
|
the file) Warning ! There are streams which haven't size by definition (E.g.
|
|
|
|
a socket).
|
|
|
|
|
|
|
|
\membersection{wxStreamBase::OnSysRead}\label{wxstreambaseonsysread}
|
|
|
|
\func{size_t}{OnSysRead}{\param{void *}{buffer}, \param{size_t}{ bufsize}}
|
|
|
|
|
|
|
|
Internal function. It is called when the stream buffer needs a buffer of the
|
|
|
|
specified size. It should return the size which was actually read.
|
|
|
|
|
|
|
|
\membersection{wxStreamBase::OnSysWrite}
|
|
|
|
\func{size_t}{OnSysWrite}{\param{void *}{buffer}, \param{size_t}{ bufsize}}
|
|
|
|
|
|
|
|
See \helpref{OnSysRead}{wxstreambaseonsysread}.
|
|
|
|
|
|
|
|
\membersection{wxStreamBase::OnSysSeek}
|
|
|
|
\func{off_t}{OnSysSeek}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode}}
|
|
|
|
|
|
|
|
Internal function. It is called when the stream buffer needs to change the
|
|
|
|
current position in the stream. See \helpref{wxStreamBuffer::Seek}{wxstreambufferseek}
|
|
|
|
|
|
|
|
\membersection{wxStreamBase::OnSysTell}
|
|
|
|
\constfunc{off_t}{OnSysTell}{\void}
|
|
|
|
|
|
|
|
Internal function. Is is called when the stream buffer needs to know the
|
|
|
|
current position in the stream.
|
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxInputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
\section{\class{wxInputStream}}\label{wxinputstream}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxStreamBase}{wxstreambase}
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxStreamBuffer}{wxstreambuffer}
|
|
|
|
|
|
|
|
% -----------
|
|
|
|
% ctor & dtor
|
|
|
|
% -----------
|
|
|
|
|
|
|
|
\membersection{wxInputStream::wxInputStream}
|
|
|
|
\func{}{wxInputStream}{\void}
|
|
|
|
|
|
|
|
Creates a dummy input stream.
|
|
|
|
|
|
|
|
\func{}{wxInputStream}{\param{wxStreamBuffer *}{sbuf}}
|
|
|
|
|
|
|
|
Creates an input stream using the specified stream buffer \it{sbuf}. This
|
|
|
|
stream buffer can point to another stream.
|
|
|
|
|
|
|
|
\membersection{wxInputStream::\destruct{wxInputStream}}
|
|
|
|
\func{}{\destruct{wxInputStream}}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
|
|
|
% -----------
|
|
|
|
% IO function
|
|
|
|
% -----------
|
|
|
|
|
|
|
|
\membersection{wxInputStream::Peek}
|
|
|
|
\func{char}{Peek}{\void}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Returns the first character in the input queue without removing it.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\membersection{wxInputStream::GetC}
|
|
|
|
\func{char}{GetC}{\void}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Returns the first character in the input queue and removes it.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\membersection{wxInputStream::Read}
|
|
|
|
\func{wxInputStream&}{Read}{\param{void *}{buffer}, \param{size_t}{ size}}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Reads the specified amount of bytes and stores the data in \it{buffer}.
|
|
|
|
\it{WARNING !} The buffer needs absolutely 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.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\func{wxInputStream&}{Read}{\param{wxOutputStream&}{ stream_out}}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Reads data from the input queue and stores them in the specified output stream.
|
|
|
|
The data is read until an error is raised by one of the two streams.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
% ------------------
|
|
|
|
% Position functions
|
|
|
|
% ------------------
|
|
|
|
|
|
|
|
\membersection{wxInputStream::SeekI}
|
|
|
|
\func{off_t}{SeekI}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Changes the stream current position.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\membersection{wxInputStream::TellI}
|
|
|
|
\constfunc{off_t}{TellI}{\void}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Returns the current stream position.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
% ---------------
|
|
|
|
% State functions
|
|
|
|
% ---------------
|
|
|
|
|
|
|
|
\membersection{wxInputStream::InputStreamBuffer}
|
|
|
|
\func{wxStreamBuffer *}{InputStreamBuffer}{\void}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Returns the stream buffer associated with the input stream.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\membersection{wxInputStream::LastRead}
|
|
|
|
\constfunc{size_t}{LastRead}{\void}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Returns the last amount of bytes read.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxOutputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
\section{\class{wx0utputStream}}\label{wxoutputstream}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxStreamBase}{wxstreambase}
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxStreamBuffer}{wxstreambuffer}
|
|
|
|
|
|
|
|
% -----------
|
|
|
|
% ctor & dtor
|
|
|
|
% -----------
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
\membersection{wxOutputStream::wxOutputStream}
|
1999-01-22 19:06:16 +00:00
|
|
|
\func{}{wxOutputStream}{\void}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Creates a dummy wxOutputStream object.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\func{}{wxOutputStream}{\param{wxStreamBuffer *}{sbuf}}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Creates an input stream using the specified stream buffer \it{sbuf}. This
|
|
|
|
stream buffer can point to another stream.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\membersection{wxOutputStream::\destruct{wxOutputStream}}
|
|
|
|
\func{}{\destruct{wxOutputStream}}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Destructor.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
% -----------
|
|
|
|
% IO function
|
|
|
|
% -----------
|
|
|
|
|
|
|
|
\membersection{wxOutputStream::PutC}
|
1999-01-23 17:58:03 +00:00
|
|
|
\func{void}{PutC}{\param{char}{ c}}
|
|
|
|
|
|
|
|
Puts the specified character in the output queue and increments the
|
|
|
|
stream position.
|
1999-01-22 19:06:16 +00:00
|
|
|
|
|
|
|
\membersection{wxOutputStream::Write}
|
|
|
|
\func{wxOutputStream&}{Write}{\param{const void *}{buffer}, \param{size_t}{ size}}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Writes the specified amount of bytes using the data of \it{buffer}.
|
|
|
|
\it{WARNING !} The buffer needs absolutely 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.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\func{wxOutputStream&}{Write}{\param{wxInputStream&}{ stream_in}}
|
|
|
|
|
1999-01-23 17:58:03 +00: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-22 19:06:16 +00:00
|
|
|
% ------------------
|
|
|
|
% Position functions
|
|
|
|
% ------------------
|
|
|
|
|
|
|
|
\membersection{wxOutputStream::SeekO}
|
1999-01-23 17:58:03 +00:00
|
|
|
\func{off_t}{SeekO}{\param{off_t}{ pos}, \param{wxSeekMode}}
|
|
|
|
|
|
|
|
Changes the stream current position.
|
1999-01-22 19:06:16 +00:00
|
|
|
|
|
|
|
\membersection{wxOutputStream::TellO}
|
|
|
|
\constfunc{off_t}{TellO}{\void}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Returns the current stream position.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
% ---------------
|
|
|
|
% State functions
|
|
|
|
% ---------------
|
|
|
|
|
|
|
|
\membersection{wxOutputStream::OutputStreamBuffer}
|
|
|
|
\func{wxStreamBuffer *}{OutputStreamBuffer}{\void}
|
|
|
|
|
1999-01-23 17:58:03 +00:00
|
|
|
Returns the stream buffer associated with the output stream.
|
|
|
|
|
1999-01-22 19:06:16 +00:00
|
|
|
\membersection{wxOutputStream::LastWrite}
|
|
|
|
\constfunc{size_t}{LastWrite}{\void}
|
|
|
|
|
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxFilterInputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
\section{\class{wxFilterInputStream}}\label{wxfilterinputstream}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxInputStream}{wxinputstream}
|
|
|
|
|
|
|
|
\wxheading{Note}
|
|
|
|
|
|
|
|
The use of this class is exactly the same as of wxInputStream. Only a constructor
|
|
|
|
differs and it is documented below.
|
|
|
|
|
|
|
|
% -----------
|
|
|
|
% ctor & dtor
|
|
|
|
% -----------
|
|
|
|
\membersection{wxFilterInputStream::wxFilterInputStream}
|
|
|
|
\func{}{wxFilterInputStream}{\param{wxInputStream&}{ stream}}
|
|
|
|
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
% wxFilterOutputStream
|
|
|
|
% -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
\section{\class{wxFilterOutputStream}}\label{wxfilteroutputstream}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxOutputStream}{wxoutputstream}
|
|
|
|
|
|
|
|
\wxheading{Note}
|
|
|
|
|
|
|
|
The use of this class is exactly the same as of wxOutputStream. Only a constructor
|
|
|
|
differs and it is documented below.
|
|
|
|
|
|
|
|
% -----------
|
|
|
|
% ctor & dtor
|
|
|
|
% -----------
|
|
|
|
\membersection{wxFilterOutputStream::wxFilterOutputStream}
|
|
|
|
\func{}{wxFilterOutputStream}{\param{wxOutputStream&}{ stream}}
|