]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/strmfile.tex
wxFont can now raelly use the native fonts
[wxWidgets.git] / docs / latex / wx / strmfile.tex
CommitLineData
e2cad352
GL
1% -----------------------------------------------------------------------------
2% wxFileInputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxFileInputStream}}\label{wxfileinputstream}
5
36edded9 6This class represents data read in from a file. There are actually
fa482912 7two such groups of classes: this one is based on \helpref{wxFile}{wxfile}
842d6c94
RR
8whereas \helpref{wxFFileInputStream}{wxffileinputstream} is based in
9the \helpref{wxFFile}{wxffile} class.
10
11Note that \helpref{wxFile}{wxfile} and \helpref{wxFFile}{wxffile} differ
12in one aspect, namely when to report that the end of the file has been
13reached. This is documented in \helpref{wxFile::Eof}{wxfileeof} and
14\helpref{wxFFile::Eof}{wxffileeof} and the behaviour of the stream
15classes reflects this difference, i.e. wxFileInputStream will report
605d715d
VS
16wxSTREAM\_EOF after having read the last byte whereas wxFFileInputStream
17will report wxSTREAM\_EOF after trying to read {\it past} the last byte.
65045edd 18
e2cad352
GL
19\wxheading{Derived from}
20
21\helpref{wxInputStream}{wxinputstream}
22
954b8ae6
JS
23\wxheading{Include files}
24
25<wx/wfstream.h>
26
e2cad352
GL
27\wxheading{See also}
28
842d6c94 29\helpref{wxBufferedInputStream}{wxbufferedinputstream}, \helpref{wxFileOutputStream}{wxfileoutputstream}, \helpref{wxFFileOutputStream}{wxffileoutputstream}
e2cad352
GL
30
31% ----------
32% Members
33% ----------
34\latexignore{\rtfignore{\wxheading{Members}}}
35
36\membersection{wxFileInputStream::wxFileInputStream}
37
4dba84be 38\func{}{wxFileInputStream}{\param{const wxString\&}{ ifileName}}
e2cad352 39
605d715d 40Opens the specified file using its {\it ifilename} name in read-only mode.
e2cad352 41
4dba84be 42\func{}{wxFileInputStream}{\param{wxFile\&}{ file}}
e2cad352 43
605d715d 44Initializes a file stream in read-only mode using the file I/O object {\it file}.
e2cad352 45
4dba84be 46\func{}{wxFileInputStream}{\param{int}{ fd}}
e2cad352
GL
47
48Initializes a file stream in read-only mode using the specified file descriptor.
49
50\membersection{wxFileInputStream::\destruct{wxFileInputStream}}
4dba84be
JS
51
52\func{}{\destruct{wxFileInputStream}}{\void}
e2cad352
GL
53
54Destructor.
55
56\membersection{wxFileInputStream::Ok}
4dba84be 57
e2cad352
GL
58\constfunc{bool}{Ok}{\void}
59
60Returns TRUE if the stream is initialized and ready.
61
62% -----------------------------------------------------------------------------
63% wxFileOutputStream
64% -----------------------------------------------------------------------------
65\section{\class{wxFileOutputStream}}\label{wxfileoutputstream}
66
36edded9 67This class represents data written to a file. There are actually
fa482912 68two such groups of classes: this one is based on \helpref{wxFile}{wxfile}
842d6c94
RR
69whereas \helpref{wxFFileInputStream}{wxffileinputstream} is based in
70the \helpref{wxFFile}{wxffile} class.
71
72Note that \helpref{wxFile}{wxfile} and \helpref{wxFFile}{wxffile} differ
73in one aspect, namely when to report that the end of the file has been
74reached. This is documented in \helpref{wxFile::Eof}{wxfileeof} and
75\helpref{wxFFile::Eof}{wxffileeof} and the behaviour of the stream
76classes reflects this difference, i.e. wxFileInputStream will report
605d715d
VS
77wxSTREAM\_EOF after having read the last byte whereas wxFFileInputStream
78will report wxSTREAM\_EOF after trying to read {\it past} the last byte.
36edded9 79
e2cad352
GL
80\wxheading{Derived from}
81
82\helpref{wxOutputStream}{wxoutputstream}
83
954b8ae6
JS
84\wxheading{Include files}
85
86<wx/wfstream.h>
87
e2cad352
GL
88\wxheading{See also}
89
842d6c94 90\helpref{wxBufferedOutputStream}{wxbufferedoutputstream}, \helpref{wxFileInputStream}{wxfileinputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}
e2cad352
GL
91
92% ----------
93% Members
94% ----------
95\latexignore{\rtfignore{\wxheading{Members}}}
96
97\membersection{wxFileOutputStream::wxFileOutputStream}
98
4dba84be 99\func{}{wxFileOutputStream}{\param{const wxString\&}{ ofileName}}
e2cad352 100
605d715d 101Creates a new file with {\it ofilename} name and initializes the stream in
e2cad352
GL
102write-only mode.
103
294e9a7a 104\func{}{wxFileOutputStream}{\param{wxFile\&}{ file}}
4dba84be 105
605d715d 106Initializes a file stream in write-only mode using the file I/O object {\it file}.
e2cad352
GL
107
108\func{}{wxFileOutputStream}{\param{int}{ fd}}
4dba84be 109
605d715d 110Initializes a file stream in write-only mode using the file descriptor {\it fd}.
e2cad352
GL
111
112\membersection{wxFileOutputStream::\destruct{wxFileOutputStream}}
4dba84be
JS
113
114\func{}{\destruct{wxFileOutputStream}}{\void}
e2cad352
GL
115
116Destructor.
117
118\membersection{wxFileOutputStream::Ok}
4dba84be 119
e2cad352
GL
120\constfunc{bool}{Ok}{\void}
121
122Returns TRUE if the stream is initialized and ready.
123
124% -----------------------------------------------------------------------------
125% wxFileStream
126% -----------------------------------------------------------------------------
127\section{\class{wxFileStream}}
128
129\wxheading{Derived from}
130
c0ffb626 131\helpref{wxFileOutputStream}{wxfileoutputstream}, \helpref{wxFileInputStream}{wxfileinputstream}
e2cad352 132
954b8ae6
JS
133\wxheading{Include files}
134
135<wx/wfstream.h>
136
e2cad352
GL
137\wxheading{See also}
138
c0ffb626 139\helpref{wxStreamBuffer}{wxstreambuffer}
e2cad352
GL
140
141\latexignore{\rtfignore{\wxheading{Members}}}
142
143\membersection{wxFileStream::wxFileStream}
144
4dba84be 145\func{}{wxFileStream}{\param{const wxString\&}{ iofileName}}
e2cad352 146
4dba84be 147Initializes a new file stream in read-write mode using the specified
605d715d 148{\it iofilename} name.
e2cad352 149
842d6c94
RR
150
151% -----------------------------------------------------------------------------
152% wxFFileInputStream
153% -----------------------------------------------------------------------------
154\section{\class{wxFFileInputStream}}\label{wxffileinputstream}
155
156This class represents data read in from a file. There are actually
fa482912 157two such groups of classes: this one is based on \helpref{wxFFile}{wxffile}
842d6c94
RR
158whereas \helpref{wxFileInputStream}{wxfileinputstream} is based in
159the \helpref{wxFile}{wxfile} class.
160
161Note that \helpref{wxFile}{wxfile} and \helpref{wxFFile}{wxffile} differ
162in one aspect, namely when to report that the end of the file has been
163reached. This is documented in \helpref{wxFile::Eof}{wxfileeof} and
164\helpref{wxFFile::Eof}{wxffileeof} and the behaviour of the stream
165classes reflects this difference, i.e. wxFileInputStream will report
605d715d
VS
166wxSTREAM\_EOF after having read the last byte whereas wxFFileInputStream
167will report wxSTREAM\_EOF after trying to read {\it past} the last byte.
842d6c94
RR
168
169\wxheading{Derived from}
170
171\helpref{wxInputStream}{wxinputstream}
172
173\wxheading{Include files}
174
175<wx/wfstream.h>
176
177\wxheading{See also}
178
179\helpref{wxBufferedInputStream}{wxbufferedinputstream}, \helpref{wxFFileOutputStream}{wxffileoutputstream}, \helpref{wxFileOutputStream}{wxfileoutputstream}
180
181% ----------
182% Members
183% ----------
184\latexignore{\rtfignore{\wxheading{Members}}}
185
186\membersection{wxFFileInputStream::wxFFileInputStream}
187
188\func{}{wxFFileInputStream}{\param{const wxString\&}{ ifileName}}
189
190Opens the specified file using its {\it ifilename} name in read-only mode.
191
192\func{}{wxFFileInputStream}{\param{wxFFile\&}{ file}}
193
194Initializes a file stream in read-only mode using the file I/O object {\it file}.
195
196\func{}{wxFFileInputStream}{\param{FILE *}{ fp}}
197
198Initializes a file stream in read-only mode using the specified file pointer {\it fp}.
199
200\membersection{wxFFileInputStream::\destruct{wxFFileInputStream}}
201
202\func{}{\destruct{wxFFileInputStream}}{\void}
203
204Destructor.
205
206\membersection{wxFFileInputStream::Ok}
207
208\constfunc{bool}{Ok}{\void}
209
210Returns TRUE if the stream is initialized and ready.
211
212% -----------------------------------------------------------------------------
213% wxFFileOutputStream
214% -----------------------------------------------------------------------------
215\section{\class{wxFFileOutputStream}}\label{wxffileoutputstream}
216
217This class represents data written to a file. There are actually
fa482912 218two such groups of classes: this one is based on \helpref{wxFFile}{wxffile}
842d6c94
RR
219whereas \helpref{wxFileInputStream}{wxffileinputstream} is based in
220the \helpref{wxFile}{wxfile} class.
221
222Note that \helpref{wxFile}{wxfile} and \helpref{wxFFile}{wxffile} differ
223in one aspect, namely when to report that the end of the file has been
224reached. This is documented in \helpref{wxFile::Eof}{wxfileeof} and
225\helpref{wxFFile::Eof}{wxffileeof} and the behaviour of the stream
226classes reflects this difference, i.e. wxFileInputStream will report
605d715d
VS
227wxSTREAM\_EOF after having read the last byte whereas wxFFileInputStream
228will report wxSTREAM\_EOF after trying to read {\it past} the last byte.
842d6c94
RR
229
230\wxheading{Derived from}
231
232\helpref{wxOutputStream}{wxoutputstream}
233
234\wxheading{Include files}
235
236<wx/wfstream.h>
237
238\wxheading{See also}
239
240\helpref{wxBufferedOutputStream}{wxbufferedoutputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}, \helpref{wxFileInputStream}{wxfileinputstream}
241
242% ----------
243% Members
244% ----------
245\latexignore{\rtfignore{\wxheading{Members}}}
246
247\membersection{wxFFileOutputStream::wxFFileOutputStream}
248
249\func{}{wxFFileOutputStream}{\param{const wxString\&}{ ofileName}}
250
605d715d 251Creates a new file with {\it ofilename} name and initializes the stream in
842d6c94
RR
252write-only mode.
253
254\func{}{wxFFileOutputStream}{\param{wxFFile\&}{ file}}
255
256Initializes a file stream in write-only mode using the file I/O object {\it file}.
257
258\func{}{wxFFileOutputStream}{\param{FILE *}{ fp}}
259
260Initializes a file stream in write-only mode using the file descriptor {\it fp}.
261
262\membersection{wxFFileOutputStream::\destruct{wxFFileOutputStream}}
263
264\func{}{\destruct{wxFFileOutputStream}}{\void}
265
266Destructor.
267
268\membersection{wxFFileOutputStream::Ok}
269
270\constfunc{bool}{Ok}{\void}
271
272Returns TRUE if the stream is initialized and ready.
273
274% -----------------------------------------------------------------------------
275% wxFFileStream
276% -----------------------------------------------------------------------------
277\section{\class{wxFFileStream}}
278
279\wxheading{Derived from}
280
c0ffb626 281\helpref{wxFFileOutputStream}{wxffileoutputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}
842d6c94
RR
282
283\wxheading{Include files}
284
285<wx/wfstream.h>
286
287\wxheading{See also}
288
c0ffb626 289\helpref{wxStreamBuffer}{wxstreambuffer}
842d6c94
RR
290
291\latexignore{\rtfignore{\wxheading{Members}}}
292
293\membersection{wxFFileStream::wxFFileStream}
294
295\func{}{wxFFileStream}{\param{const wxString\&}{ iofileName}}
296
297Initializes a new file stream in read-write mode using the specified
605d715d 298{\it iofilename} name.
842d6c94
RR
299
300