]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/ffilestr.tex
Using != doesn't work for bakefile, I don't know what does, or what this
[wxWidgets.git] / docs / latex / wx / ffilestr.tex
CommitLineData
842d6c94
RR
1% -----------------------------------------------------------------------------
2% wxFFileInputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxFFileInputStream}}\label{wxffileinputstream}
5
6This class represents data read in from a file. There are actually
fa482912 7two such groups of classes: this one is based on \helpref{wxFFile}{wxffile}
842d6c94
RR
8whereas \helpref{wxFileInputStream}{wxfileinputstream} is based in
9the \helpref{wxFile}{wxfile} 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.
a84e46f2
VS
18Related to EOF behavior, note that \helpref{SeekI()}{wxinputstreamseeki}
19can seek beyond the end of the stream (file) and will thus not return
20{\it wxInvalidOffset} for that.
842d6c94
RR
21
22\wxheading{Derived from}
23
24\helpref{wxInputStream}{wxinputstream}
25
26\wxheading{Include files}
27
28<wx/wfstream.h>
29
30\wxheading{See also}
31
32\helpref{wxBufferedInputStream}{wxbufferedinputstream}, \helpref{wxFFileOutputStream}{wxffileoutputstream}, \helpref{wxFileOutputStream}{wxfileoutputstream}
33
34% ----------
35% Members
36% ----------
37\latexignore{\rtfignore{\wxheading{Members}}}
38
39\membersection{wxFFileInputStream::wxFFileInputStream}
40
41\func{}{wxFFileInputStream}{\param{const wxString\&}{ ifileName}}
42
43Opens the specified file using its {\it ifilename} name in read-only mode.
44
45\func{}{wxFFileInputStream}{\param{wxFFile\&}{ file}}
46
47Initializes a file stream in read-only mode using the file I/O object {\it file}.
48
49\func{}{wxFFileInputStream}{\param{FILE *}{ fp}}
50
51Initializes a file stream in read-only mode using the specified file pointer {\it fp}.
52
53\membersection{wxFFileInputStream::\destruct{wxFFileInputStream}}
54
55\func{}{\destruct{wxFFileInputStream}}{\void}
56
57Destructor.
58
59\membersection{wxFFileInputStream::Ok}
60
61\constfunc{bool}{Ok}{\void}
62
cc81d32f 63Returns true if the stream is initialized and ready.
842d6c94
RR
64
65% -----------------------------------------------------------------------------
66% wxFFileOutputStream
67% -----------------------------------------------------------------------------
68\section{\class{wxFFileOutputStream}}\label{wxffileoutputstream}
69
70This class represents data written to a file. There are actually
fa482912 71two such groups of classes: this one is based on \helpref{wxFFile}{wxffile}
842d6c94
RR
72whereas \helpref{wxFileInputStream}{wxffileinputstream} is based in
73the \helpref{wxFile}{wxfile} class.
74
75Note that \helpref{wxFile}{wxfile} and \helpref{wxFFile}{wxffile} differ
76in one aspect, namely when to report that the end of the file has been
77reached. This is documented in \helpref{wxFile::Eof}{wxfileeof} and
78\helpref{wxFFile::Eof}{wxffileeof} and the behaviour of the stream
79classes reflects this difference, i.e. wxFileInputStream will report
605d715d
VS
80wxSTREAM\_EOF after having read the last byte whereas wxFFileInputStream
81will report wxSTREAM\_EOF after trying to read {\it past} the last byte.
a84e46f2
VS
82Related to EOF behavior, note that \helpref{SeekO()}{wxoutputstreamseeko}
83can seek beyond the end of the stream (file) and will thus not return
84{\it wxInvalidOffset} for that.
842d6c94
RR
85
86\wxheading{Derived from}
87
88\helpref{wxOutputStream}{wxoutputstream}
89
90\wxheading{Include files}
91
92<wx/wfstream.h>
93
94\wxheading{See also}
95
96\helpref{wxBufferedOutputStream}{wxbufferedoutputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}, \helpref{wxFileInputStream}{wxfileinputstream}
97
98% ----------
99% Members
100% ----------
101\latexignore{\rtfignore{\wxheading{Members}}}
102
103\membersection{wxFFileOutputStream::wxFFileOutputStream}
104
105\func{}{wxFFileOutputStream}{\param{const wxString\&}{ ofileName}}
106
605d715d 107Creates a new file with {\it ofilename} name and initializes the stream in
842d6c94
RR
108write-only mode.
109
110\func{}{wxFFileOutputStream}{\param{wxFFile\&}{ file}}
111
112Initializes a file stream in write-only mode using the file I/O object {\it file}.
113
114\func{}{wxFFileOutputStream}{\param{FILE *}{ fp}}
115
116Initializes a file stream in write-only mode using the file descriptor {\it fp}.
117
118\membersection{wxFFileOutputStream::\destruct{wxFFileOutputStream}}
119
120\func{}{\destruct{wxFFileOutputStream}}{\void}
121
122Destructor.
123
124\membersection{wxFFileOutputStream::Ok}
125
126\constfunc{bool}{Ok}{\void}
127
cc81d32f 128Returns true if the stream is initialized and ready.
842d6c94
RR
129
130% -----------------------------------------------------------------------------
131% wxFFileStream
132% -----------------------------------------------------------------------------
133\section{\class{wxFFileStream}}
134
135\wxheading{Derived from}
136
c0ffb626 137\helpref{wxFFileOutputStream}{wxffileoutputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}
842d6c94
RR
138
139\wxheading{Include files}
140
141<wx/wfstream.h>
142
143\wxheading{See also}
144
c0ffb626 145\helpref{wxStreamBuffer}{wxstreambuffer}
842d6c94
RR
146
147\latexignore{\rtfignore{\wxheading{Members}}}
148
149\membersection{wxFFileStream::wxFFileStream}
150
151\func{}{wxFFileStream}{\param{const wxString\&}{ iofileName}}
152
153Initializes a new file stream in read-write mode using the specified
605d715d 154{\it iofilename} name.
842d6c94
RR
155
156