1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxFileInputStream
}}\label{wxfileinputstream
}
6 This class represents data read in from a file. There are actually
7 two such groups of classes: this one is based on the
\helpref{wxFile
}{wxfile
}
8 whereas
\helpref{wxFFileInputStream
}{wxffileinputstream
} is based in
9 the
\helpref{wxFFile
}{wxffile
} class.
11 Note that
\helpref{wxFile
}{wxfile
} and
\helpref{wxFFile
}{wxffile
} differ
12 in one aspect, namely when to
report that the end of the file has been
13 reached. This is documented in
\helpref{wxFile::Eof
}{wxfileeof
} and
14 \helpref{wxFFile::Eof
}{wxffileeof
} and the behaviour of the stream
15 classes reflects this difference, i.e. wxFileInputStream will
report
16 wxSTREAM
\_EOF after having read the last byte whereas wxFFileInputStream
17 will
report wxSTREAM
\_EOF after trying to read
{\it past
} the last byte.
19 \wxheading{Derived from
}
21 \helpref{wxInputStream
}{wxinputstream
}
23 \wxheading{Include files
}
29 \helpref{wxBufferedInputStream
}{wxbufferedinputstream
},
\helpref{wxFileOutputStream
}{wxfileoutputstream
},
\helpref{wxFFileOutputStream
}{wxffileoutputstream
}
34 \latexignore{\rtfignore{\wxheading{Members
}}}
36 \membersection{wxFileInputStream::wxFileInputStream
}
38 \func{}{wxFileInputStream
}{\param{const wxString\&
}{ ifileName
}}
40 Opens the specified file using its
{\it ifilename
} name in read-only mode.
42 \func{}{wxFileInputStream
}{\param{wxFile\&
}{ file
}}
44 Initializes a file stream in read-only mode using the file I/O object
{\it file
}.
46 \func{}{wxFileInputStream
}{\param{int
}{ fd
}}
48 Initializes a file stream in read-only mode using the specified file descriptor.
50 \membersection{wxFileInputStream::
\destruct{wxFileInputStream
}}
52 \func{}{\destruct{wxFileInputStream
}}{\void}
56 \membersection{wxFileInputStream::Ok
}
58 \constfunc{bool
}{Ok
}{\void}
60 Returns TRUE if the stream is initialized and ready.
62 % -----------------------------------------------------------------------------
64 % -----------------------------------------------------------------------------
65 \section{\class{wxFileOutputStream
}}\label{wxfileoutputstream
}
67 This class represents data written to a file. There are actually
68 two such groups of classes: this one is based on the
\helpref{wxFile
}{wxfile
}
69 whereas
\helpref{wxFFileInputStream
}{wxffileinputstream
} is based in
70 the
\helpref{wxFFile
}{wxffile
} class.
72 Note that
\helpref{wxFile
}{wxfile
} and
\helpref{wxFFile
}{wxffile
} differ
73 in one aspect, namely when to
report that the end of the file has been
74 reached. This is documented in
\helpref{wxFile::Eof
}{wxfileeof
} and
75 \helpref{wxFFile::Eof
}{wxffileeof
} and the behaviour of the stream
76 classes reflects this difference, i.e. wxFileInputStream will
report
77 wxSTREAM
\_EOF after having read the last byte whereas wxFFileInputStream
78 will
report wxSTREAM
\_EOF after trying to read
{\it past
} the last byte.
80 \wxheading{Derived from
}
82 \helpref{wxOutputStream
}{wxoutputstream
}
84 \wxheading{Include files
}
90 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
},
\helpref{wxFileInputStream
}{wxfileinputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
}
95 \latexignore{\rtfignore{\wxheading{Members
}}}
97 \membersection{wxFileOutputStream::wxFileOutputStream
}
99 \func{}{wxFileOutputStream
}{\param{const wxString\&
}{ ofileName
}}
101 Creates a new file with
{\it ofilename
} name and initializes the stream in
104 \func{}{wxFileOutputStream
}{\param{wxFile\&
}{ file
}}
106 Initializes a file stream in write-only mode using the file I/O object
{\it file
}.
108 \func{}{wxFileOutputStream
}{\param{int
}{ fd
}}
110 Initializes a file stream in write-only mode using the file descriptor
{\it fd
}.
112 \membersection{wxFileOutputStream::
\destruct{wxFileOutputStream
}}
114 \func{}{\destruct{wxFileOutputStream
}}{\void}
118 \membersection{wxFileOutputStream::Ok
}
120 \constfunc{bool
}{Ok
}{\void}
122 Returns TRUE if the stream is initialized and ready.
124 % -----------------------------------------------------------------------------
126 % -----------------------------------------------------------------------------
127 \section{\class{wxFileStream
}}
129 \wxheading{Derived from
}
131 \helpref{wxFileOutputStream
}{wxFileOutputStream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
133 \wxheading{Include files
}
139 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
141 \latexignore{\rtfignore{\wxheading{Members
}}}
143 \membersection{wxFileStream::wxFileStream
}
145 \func{}{wxFileStream
}{\param{const wxString\&
}{ iofileName
}}
147 Initializes a new file stream in read-write mode using the specified
148 {\it iofilename
} name.
151 % -----------------------------------------------------------------------------
153 % -----------------------------------------------------------------------------
154 \section{\class{wxFFileInputStream
}}\label{wxffileinputstream
}
156 This class represents data read in from a file. There are actually
157 two such groups of classes: this one is based on the
\helpref{wxFFile
}{wxffile
}
158 whereas
\helpref{wxFileInputStream
}{wxfileinputstream
} is based in
159 the
\helpref{wxFile
}{wxfile
} class.
161 Note that
\helpref{wxFile
}{wxfile
} and
\helpref{wxFFile
}{wxffile
} differ
162 in one aspect, namely when to
report that the end of the file has been
163 reached. This is documented in
\helpref{wxFile::Eof
}{wxfileeof
} and
164 \helpref{wxFFile::Eof
}{wxffileeof
} and the behaviour of the stream
165 classes reflects this difference, i.e. wxFileInputStream will
report
166 wxSTREAM
\_EOF after having read the last byte whereas wxFFileInputStream
167 will
report wxSTREAM
\_EOF after trying to read
{\it past
} the last byte.
169 \wxheading{Derived from
}
171 \helpref{wxInputStream
}{wxinputstream
}
173 \wxheading{Include files
}
179 \helpref{wxBufferedInputStream
}{wxbufferedinputstream
},
\helpref{wxFFileOutputStream
}{wxffileoutputstream
},
\helpref{wxFileOutputStream
}{wxfileoutputstream
}
184 \latexignore{\rtfignore{\wxheading{Members
}}}
186 \membersection{wxFFileInputStream::wxFFileInputStream
}
188 \func{}{wxFFileInputStream
}{\param{const wxString\&
}{ ifileName
}}
190 Opens the specified file using its
{\it ifilename
} name in read-only mode.
192 \func{}{wxFFileInputStream
}{\param{wxFFile\&
}{ file
}}
194 Initializes a file stream in read-only mode using the file I/O object
{\it file
}.
196 \func{}{wxFFileInputStream
}{\param{FILE *
}{ fp
}}
198 Initializes a file stream in read-only mode using the specified file pointer
{\it fp
}.
200 \membersection{wxFFileInputStream::
\destruct{wxFFileInputStream
}}
202 \func{}{\destruct{wxFFileInputStream
}}{\void}
206 \membersection{wxFFileInputStream::Ok
}
208 \constfunc{bool
}{Ok
}{\void}
210 Returns TRUE if the stream is initialized and ready.
212 % -----------------------------------------------------------------------------
213 % wxFFileOutputStream
214 % -----------------------------------------------------------------------------
215 \section{\class{wxFFileOutputStream
}}\label{wxffileoutputstream
}
217 This class represents data written to a file. There are actually
218 two such groups of classes: this one is based on the
\helpref{wxFFile
}{wxffile
}
219 whereas
\helpref{wxFileInputStream
}{wxffileinputstream
} is based in
220 the
\helpref{wxFile
}{wxfile
} class.
222 Note that
\helpref{wxFile
}{wxfile
} and
\helpref{wxFFile
}{wxffile
} differ
223 in one aspect, namely when to
report that the end of the file has been
224 reached. This is documented in
\helpref{wxFile::Eof
}{wxfileeof
} and
225 \helpref{wxFFile::Eof
}{wxffileeof
} and the behaviour of the stream
226 classes reflects this difference, i.e. wxFileInputStream will
report
227 wxSTREAM
\_EOF after having read the last byte whereas wxFFileInputStream
228 will
report wxSTREAM
\_EOF after trying to read
{\it past
} the last byte.
230 \wxheading{Derived from
}
232 \helpref{wxOutputStream
}{wxoutputstream
}
234 \wxheading{Include files
}
240 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
245 \latexignore{\rtfignore{\wxheading{Members
}}}
247 \membersection{wxFFileOutputStream::wxFFileOutputStream
}
249 \func{}{wxFFileOutputStream
}{\param{const wxString\&
}{ ofileName
}}
251 Creates a new file with
{\it ofilename
} name and initializes the stream in
254 \func{}{wxFFileOutputStream
}{\param{wxFFile\&
}{ file
}}
256 Initializes a file stream in write-only mode using the file I/O object
{\it file
}.
258 \func{}{wxFFileOutputStream
}{\param{FILE *
}{ fp
}}
260 Initializes a file stream in write-only mode using the file descriptor
{\it fp
}.
262 \membersection{wxFFileOutputStream::
\destruct{wxFFileOutputStream
}}
264 \func{}{\destruct{wxFFileOutputStream
}}{\void}
268 \membersection{wxFFileOutputStream::Ok
}
270 \constfunc{bool
}{Ok
}{\void}
272 Returns TRUE if the stream is initialized and ready.
274 % -----------------------------------------------------------------------------
276 % -----------------------------------------------------------------------------
277 \section{\class{wxFFileStream
}}
279 \wxheading{Derived from
}
281 \helpref{wxFFileOutputStream
}{wxFFileOutputStream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
}
283 \wxheading{Include files
}
289 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
291 \latexignore{\rtfignore{\wxheading{Members
}}}
293 \membersection{wxFFileStream::wxFFileStream
}
295 \func{}{wxFFileStream
}{\param{const wxString\&
}{ iofileName
}}
297 Initializes a new file stream in read-write mode using the specified
298 {\it iofilename
} name.