1999-02-06 08:32:46 -05:00
|
|
|
\section{\class{wxDataInputStream}}\label{wxdatainputstream}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
This class provides functions that read data types in a
|
1998-07-08 15:06:13 -04:00
|
|
|
portable way. So, a file written by an Intel processor can be read by a
|
|
|
|
Sparc or anything else.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\wxheading{Derived from}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\helpref{wxFilterInputStream}{wxfilterinputstream}\\
|
|
|
|
\helpref{wxInputStream}{wxinputstream}\\
|
|
|
|
\helpref{wxStreamBase}{wxstreambase}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/datstrm.h>
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataInputStream::wxDataInputStream}\label{wxdatainputstreamconstr}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\func{}{wxDataInputStream}{\param{wxInputStream\&}{ stream}}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
Constructs a datastream object from an input stream. Only read methods will
|
1998-07-08 15:06:13 -04:00
|
|
|
be available.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\docparam{stream}{The input stream.}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataInputStream::\destruct{wxDataInputStream}}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\func{}{\destruct{wxDataInputStream}}{\void}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
Destroys the wxDataInputStream object.
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataInputStream::Read8}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
\func{unsigned char}{Read8}{\void}
|
|
|
|
|
|
|
|
Reads a single byte from the stream.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataInputStream::Read16}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
\func{unsigned short}{Read16}{\void}
|
|
|
|
|
|
|
|
Reads a 16 bit integer from the stream.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataInputStream::Read32}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
\func{unsigned long}{Read32}{\void}
|
|
|
|
|
|
|
|
Reads a 32 bit integer from the stream.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataInputStream::ReadDouble}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
\func{double}{ReadDouble}{\void}
|
|
|
|
|
|
|
|
Reads a double (IEEE encoded) from the stream.
|
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
\membersection{wxDataInputStream::ReadLine}
|
|
|
|
|
|
|
|
\func{wxString}{wxDataInputStream::ReadLine}{\void}
|
|
|
|
|
|
|
|
Reads a line from the stream. A line is a string which ends with \\n or \\r\\n.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataInputStream::ReadString}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\func{wxString}{wxDataInputStream::ReadString}{\void}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
Reads a string from a stream. Actually, this function first reads a long integer
|
1998-07-08 15:06:13 -04:00
|
|
|
specifying the length of the string (without the last null character) and then
|
|
|
|
reads the string.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\section{\class{wxDataOutputStream}}\label{wxdataoutputstream}
|
|
|
|
|
|
|
|
This class provides functions that write data types in a
|
|
|
|
portable way. So, a file written by an Intel processor can be read by a
|
|
|
|
Sparc or anything else.
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
\membersection{wxDataOutputStream::wxDataOutputStream}\label{wxdataoutputstreamconstr}
|
|
|
|
|
|
|
|
\func{}{wxDataInputStream}{\param{wxOutputStream\&}{ stream}}
|
|
|
|
|
|
|
|
Constructs a datastream object from an output stream. Only read methods will
|
|
|
|
be available.
|
|
|
|
|
|
|
|
\wxheading{Parameters}
|
|
|
|
|
|
|
|
\docparam{stream}{The output stream.}
|
|
|
|
|
|
|
|
\membersection{wxDataOutputStream::\destruct{wxDataOutputStream}}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxDataOutputStream}}{\void}
|
|
|
|
|
|
|
|
Destroys the wxDataOutputStream object.
|
|
|
|
|
|
|
|
\membersection{wxDataOutputStream::Write8}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\func{void}{wxDataOutputStream::Write8}{{\param unsigned char }{i8}}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
Writes the single byte {\it i8} to the stream.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataOutputStream::Write16}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\func{void}{wxDataOutputStream::Write16}{{\param unsigned short }{i16}}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
Writes the 16 bit integer {\it i16} to the stream.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataOutputStream::Write32}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\func{void}{wxDataOutputStream::Write32}{{\param unsigned long }{i32}}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
Writes the 32 bit integer {\it i32} to the stream.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataOutputStream::WriteDouble}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\func{void}{wxDataOutputStream::WriteDouble}{{\param double }{f}}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
Writes the double {\it f} to the stream using the IEEE format.
|
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\membersection{wxDataOutputStream::WriteLine}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
1999-02-06 08:32:46 -05:00
|
|
|
\func{void}{wxDataOutputStream::WriteLine}{{\param const wxString\& }{string}}
|
1998-07-08 15:06:13 -04:00
|
|
|
|
|
|
|
Writes {\it string} as a line. Depending on the operating system, it adds
|
1999-02-06 08:32:46 -05:00
|
|
|
$\backslash$n or $\backslash$r$\backslash$n.
|
1998-07-17 08:34:50 -04:00
|
|
|
|
1999-02-25 10:07:00 -05:00
|
|
|
\membersection{wxDataOutputStream::WriteString}
|
|
|
|
|
|
|
|
\func{void}{wxDataOutputStream::WriteString}{{\param const wxString\& }{string}}
|
|
|
|
|
|
|
|
Writes {\it string} to the stream. Actually, this method writes the size of
|
|
|
|
the string before writing {\it string} itself.
|
|
|
|
|