1 % ----------------------------------------------------------------------------
3 % ----------------------------------------------------------------------------
4 \section{\class{wxDataInputStream
}}\label{wxdatainputstream
}
6 This class provides functions that read data types in a
7 portable way. So, a file written by an Intel processor can be read by a
8 Sparc or anything else.
10 \wxheading{Include files
}
14 \latexignore{\rtfignore{\wxheading{Members
}}}
16 \membersection{wxDataInputStream::wxDataInputStream
}\label{wxdatainputstreamconstr
}
18 \func{}{wxDataInputStream
}{\param{wxInputStream\&
}{ stream
}}
20 Constructs a datastream object from an input stream. Only read methods will
23 \wxheading{Parameters
}
25 \docparam{stream
}{The input stream.
}
27 \membersection{wxDataInputStream::
\destruct{wxDataInputStream
}}
29 \func{}{\destruct{wxDataInputStream
}}{\void}
31 Destroys the wxDataInputStream object.
33 \membersection{wxDataInputStream::Read8
}
35 \func{unsigned char
}{Read8
}{\void}
37 Reads a single byte from the stream.
39 \membersection{wxDataInputStream::Read16
}
41 \func{unsigned short
}{Read16
}{\void}
43 Reads a
16 bit integer from the stream.
45 \membersection{wxDataInputStream::Read32
}
47 \func{unsigned long
}{Read32
}{\void}
49 Reads a
32 bit integer from the stream.
51 \membersection{wxDataInputStream::ReadDouble
}
53 \func{double
}{ReadDouble
}{\void}
55 Reads a double (IEEE encoded) from the stream.
57 \membersection{wxDataInputStream::ReadString
}
59 \func{wxString
}{wxDataInputStream::ReadString
}{\void}
61 Reads a string from a stream. Actually, this function first reads a long integer
62 specifying the length of the string (without the last null character) and then
65 % ----------------------------------------------------------------------------
67 % ----------------------------------------------------------------------------
69 \section{\class{wxDataOutputStream
}}\label{wxdataoutputstream
}
71 This class provides functions that write data types in a
72 portable way. So, a file written by an Intel processor can be read by a
73 Sparc or anything else.
75 \latexignore{\rtfignore{\wxheading{Members
}}}
77 \membersection{wxDataOutputStream::wxDataOutputStream
}\label{wxdataoutputstreamconstr
}
79 \func{}{wxDataInputStream
}{\param{wxOutputStream\&
}{ stream
}}
81 Constructs a datastream object from an output stream. Only read methods will
84 \wxheading{Parameters
}
86 \docparam{stream
}{The output stream.
}
88 \membersection{wxDataOutputStream::
\destruct{wxDataOutputStream
}}
90 \func{}{\destruct{wxDataOutputStream
}}{\void}
92 Destroys the wxDataOutputStream object.
94 \membersection{wxDataOutputStream::Write8
}
96 \func{void
}{wxDataOutputStream::Write8
}{{\param unsigned char
}{i8
}}
98 Writes the single byte
{\it i8
} to the stream.
100 \membersection{wxDataOutputStream::Write16
}
102 \func{void
}{wxDataOutputStream::Write16
}{{\param unsigned short
}{i16
}}
104 Writes the
16 bit integer
{\it i16
} to the stream.
106 \membersection{wxDataOutputStream::Write32
}
108 \func{void
}{wxDataOutputStream::Write32
}{{\param unsigned long
}{i32
}}
110 Writes the
32 bit integer
{\it i32
} to the stream.
112 \membersection{wxDataOutputStream::WriteDouble
}
114 \func{void
}{wxDataOutputStream::WriteDouble
}{{\param double
}{f
}}
116 Writes the double
{\it f
} to the stream using the IEEE format.
118 \membersection{wxDataOutputStream::WriteString
}
120 \func{void
}{wxDataOutputStream::WriteString
}{{\param const wxString\&
}{string
}}
122 Writes
{\it string
} to the stream. Actually, this method writes the size of
123 the string before writing
{\it string
} itself.