1 \section{\class{wxDataInputStream
}}\label{wxdatainputstream
}
3 This class provides functions that read data types in a
4 portable way. So, a file written by an Intel processor can be read by a
5 Sparc or anything else.
7 \wxheading{Derived from
}
9 \helpref{wxFilterInputStream
}{wxfilterinputstream
}\\
10 \helpref{wxInputStream
}{wxinputstream
}\\
11 \helpref{wxStreamBase
}{wxstreambase
}
13 \wxheading{Include files
}
17 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxDataInputStream::wxDataInputStream
}\label{wxdatainputstreamconstr
}
21 \func{}{wxDataInputStream
}{\param{wxInputStream\&
}{ stream
}}
23 Constructs a datastream object from an input stream. Only read methods will
26 \wxheading{Parameters
}
28 \docparam{stream
}{The input stream.
}
30 \membersection{wxDataInputStream::
\destruct{wxDataInputStream
}}
32 \func{}{\destruct{wxDataInputStream
}}{\void}
34 Destroys the wxDataInputStream object.
36 \membersection{wxDataInputStream::Read8
}
38 \func{unsigned char
}{Read8
}{\void}
40 Reads a single byte from the stream.
42 \membersection{wxDataInputStream::Read16
}
44 \func{unsigned short
}{Read16
}{\void}
46 Reads a
16 bit integer from the stream.
48 \membersection{wxDataInputStream::Read32
}
50 \func{unsigned long
}{Read32
}{\void}
52 Reads a
32 bit integer from the stream.
54 \membersection{wxDataInputStream::ReadDouble
}
56 \func{double
}{ReadDouble
}{\void}
58 Reads a double (IEEE encoded) from the stream.
60 \membersection{wxDataInputStream::ReadLine
}
62 \func{wxString
}{wxDataInputStream::ReadLine
}{\void}
64 Reads a line from the stream. A line is a string which ends with \
\n or \
\r\
\n.
66 \membersection{wxDataInputStream::ReadString
}
68 \func{wxString
}{wxDataInputStream::ReadString
}{\void}
70 Reads a string from a stream. Actually, this function first reads a long integer
71 specifying the length of the string (without the last null character) and then
74 \section{\class{wxDataOutputStream
}}\label{wxdataoutputstream
}
76 This class provides functions that write data types in a
77 portable way. So, a file written by an Intel processor can be read by a
78 Sparc or anything else.
80 \latexignore{\rtfignore{\wxheading{Members
}}}
82 \membersection{wxDataOutputStream::wxDataOutputStream
}\label{wxdataoutputstreamconstr
}
84 \func{}{wxDataInputStream
}{\param{wxOutputStream\&
}{ stream
}}
86 Constructs a datastream object from an output stream. Only read methods will
89 \wxheading{Parameters
}
91 \docparam{stream
}{The output stream.
}
93 \membersection{wxDataOutputStream::
\destruct{wxDataOutputStream
}}
95 \func{}{\destruct{wxDataOutputStream
}}{\void}
97 Destroys the wxDataOutputStream object.
99 \membersection{wxDataOutputStream::Write8
}
101 \func{void
}{wxDataOutputStream::Write8
}{{\param unsigned char
}{i8
}}
103 Writes the single byte
{\it i8
} to the stream.
105 \membersection{wxDataOutputStream::Write16
}
107 \func{void
}{wxDataOutputStream::Write16
}{{\param unsigned short
}{i16
}}
109 Writes the
16 bit integer
{\it i16
} to the stream.
111 \membersection{wxDataOutputStream::Write32
}
113 \func{void
}{wxDataOutputStream::Write32
}{{\param unsigned long
}{i32
}}
115 Writes the
32 bit integer
{\it i32
} to the stream.
117 \membersection{wxDataOutputStream::WriteDouble
}
119 \func{void
}{wxDataOutputStream::WriteDouble
}{{\param double
}{f
}}
121 Writes the double
{\it f
} to the stream using the IEEE format.
123 \membersection{wxDataOutputStream::WriteLine
}
125 \func{void
}{wxDataOutputStream::WriteLine
}{{\param const wxString\&
}{string
}}
127 Writes
{\it string
} as a line. Depending on the operating system, it adds
128 $
\backslash$n or $
\backslash$r$
\backslash$n.
130 \membersection{wxDataOutputStream::WriteString
}
132 \func{void
}{wxDataOutputStream::WriteString
}{{\param const wxString\&
}{string
}}
134 Writes
{\it string
} to the stream. Actually, this method writes the size of
135 the string before writing
{\it string
} itself.