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 \latexignore{\rtfignore{\wxheading{Members
}}}
15 \membersection{wxDataInputStream::wxDataInputStream
}\label{wxdatainputstreamconstr
}
17 \func{}{wxDataInputStream
}{\param{wxInputStream\&
}{ stream
}}
19 Constructs a datastream object from an input stream. Only read methods will
22 \wxheading{Parameters
}
24 \docparam{stream
}{The input stream.
}
26 \membersection{wxDataInputStream::
\destruct{wxDataInputStream
}}
28 \func{}{\destruct{wxDataInputStream
}}{\void}
30 Destroys the wxDataInputStream object.
32 \membersection{wxDataInputStream::Read8
}
34 \func{unsigned char
}{Read8
}{\void}
36 Reads a single byte from the stream.
38 \membersection{wxDataInputStream::Read16
}
40 \func{unsigned short
}{Read16
}{\void}
42 Reads a
16 bit integer from the stream.
44 \membersection{wxDataInputStream::Read32
}
46 \func{unsigned long
}{Read32
}{\void}
48 Reads a
32 bit integer from the stream.
50 \membersection{wxDataInputStream::ReadDouble
}
52 \func{double
}{ReadDouble
}{\void}
54 Reads a double (IEEE encoded) from the stream.
56 \membersection{wxDataInputStream::ReadString
}
58 \func{wxString
}{wxDataInputStream::ReadString
}{\void}
60 Reads a string from a stream. Actually, this function first reads a long integer
61 specifying the length of the string (without the last null character) and then
64 \membersection{wxDataInputStream::ReadLine
}
66 \func{wxString
}{wxDataInputStream::ReadLine
}{\void}
68 Reads a line from the stream. A line is a string which ends with \
\n or \
\r\
\n.
70 \section{\class{wxDataOutputStream
}}\label{wxdataoutputstream
}
72 This class provides functions that write data types in a
73 portable way. So, a file written by an Intel processor can be read by a
74 Sparc or anything else.
76 \latexignore{\rtfignore{\wxheading{Members
}}}
78 \membersection{wxDataOutputStream::wxDataOutputStream
}\label{wxdataoutputstreamconstr
}
80 \func{}{wxDataInputStream
}{\param{wxOutputStream\&
}{ stream
}}
82 Constructs a datastream object from an output stream. Only read methods will
85 \wxheading{Parameters
}
87 \docparam{stream
}{The output stream.
}
89 \membersection{wxDataOutputStream::
\destruct{wxDataOutputStream
}}
91 \func{}{\destruct{wxDataOutputStream
}}{\void}
93 Destroys the wxDataOutputStream object.
95 \membersection{wxDataOutputStream::Write8
}
97 \func{void
}{wxDataOutputStream::Write8
}{{\param unsigned char
}{i8
}}
99 Writes the single byte
{\it i8
} to the stream.
101 \membersection{wxDataOutputStream::Write16
}
103 \func{void
}{wxDataOutputStream::Write16
}{{\param unsigned short
}{i16
}}
105 Writes the
16 bit integer
{\it i16
} to the stream.
107 \membersection{wxDataOutputStream::Write32
}
109 \func{void
}{wxDataOutputStream::Write32
}{{\param unsigned long
}{i32
}}
111 Writes the
32 bit integer
{\it i32
} to the stream.
113 \membersection{wxDataOutputStream::WriteDouble
}
115 \func{void
}{wxDataOutputStream::WriteDouble
}{{\param double
}{f
}}
117 Writes the double
{\it f
} to the stream using the IEEE format.
119 \membersection{wxDataOutputStream::WriteString
}
121 \func{void
}{wxDataOutputStream::WriteString
}{{\param const wxString\&
}{string
}}
123 Writes
{\it string
} to the stream. Actually, this method writes the size of
124 the string before writing
{\it string
} itself.
126 \membersection{wxDataOutputStream::WriteLine
}
128 \func{void
}{wxDataOutputStream::WriteLine
}{{\param const wxString\&
}{string
}}
130 Writes
{\it string
} as a line. Depending on the operating system, it adds
131 $
\backslash$n or $
\backslash$r$
\backslash$n.