]>
Commit | Line | Data |
---|---|---|
1106d865 VZ |
1 | \section{\class{wxFileInputStream}}\label{wxfileinputstream} |
2 | ||
3 | This class represents data read in from a file. There are actually | |
4 | two such groups of classes: this one is based on \helpref{wxFile}{wxfile} | |
5 | whereas \helpref{wxFFileInputStream}{wxffileinputstream} is based in | |
6 | the \helpref{wxFFile}{wxffile} class. | |
7 | ||
bf085665 | 8 | Note that \helpref{SeekI()}{wxinputstreamseeki} |
a84e46f2 VS |
9 | can seek beyond the end of the stream (file) and will thus not return |
10 | {\it wxInvalidOffset} for that. | |
1106d865 VZ |
11 | |
12 | \wxheading{Derived from} | |
13 | ||
14 | \helpref{wxInputStream}{wxinputstream} | |
15 | ||
16 | \wxheading{Include files} | |
17 | ||
18 | <wx/wfstream.h> | |
19 | ||
a7af285d VZ |
20 | \wxheading{Library} |
21 | ||
22 | \helpref{wxBase}{librarieslist} | |
23 | ||
1106d865 VZ |
24 | \wxheading{See also} |
25 | ||
26 | \helpref{wxBufferedInputStream}{wxbufferedinputstream}, \helpref{wxFileOutputStream}{wxfileoutputstream}, \helpref{wxFFileOutputStream}{wxffileoutputstream} | |
27 | ||
28 | % ---------- | |
29 | % Members | |
30 | % ---------- | |
31 | \latexignore{\rtfignore{\wxheading{Members}}} | |
32 | ||
b236c10f | 33 | \membersection{wxFileInputStream::wxFileInputStream}\label{wxfileinputstreamctor} |
1106d865 VZ |
34 | |
35 | \func{}{wxFileInputStream}{\param{const wxString\&}{ ifileName}} | |
36 | ||
37 | Opens the specified file using its {\it ifilename} name in read-only mode. | |
38 | ||
39 | \func{}{wxFileInputStream}{\param{wxFile\&}{ file}} | |
40 | ||
41 | Initializes a file stream in read-only mode using the file I/O object {\it file}. | |
42 | ||
43 | \func{}{wxFileInputStream}{\param{int}{ fd}} | |
44 | ||
45 | Initializes a file stream in read-only mode using the specified file descriptor. | |
46 | ||
b236c10f | 47 | \membersection{wxFileInputStream::\destruct{wxFileInputStream}}\label{wxfileinputstreamdtor} |
1106d865 VZ |
48 | |
49 | \func{}{\destruct{wxFileInputStream}}{\void} | |
50 | ||
51 | Destructor. | |
52 | ||
b7cacb43 | 53 | \membersection{wxFileInputStream::IsOk}\label{wxfileinputstreamisok} |
1106d865 | 54 | |
b7cacb43 | 55 | \constfunc{bool}{IsOk}{\void} |
1106d865 | 56 | |
cc81d32f | 57 | Returns true if the stream is initialized and ready. |
1106d865 | 58 |