]>
Commit | Line | Data |
---|---|---|
842d6c94 RR |
1 | % ----------------------------------------------------------------------------- |
2 | % wxFFileInputStream | |
3 | % ----------------------------------------------------------------------------- | |
4 | \section{\class{wxFFileInputStream}}\label{wxffileinputstream} | |
5 | ||
6 | This class represents data read in from a file. There are actually | |
fa482912 | 7 | two such groups of classes: this one is based on \helpref{wxFFile}{wxffile} |
842d6c94 RR |
8 | whereas \helpref{wxFileInputStream}{wxfileinputstream} is based in |
9 | the \helpref{wxFile}{wxfile} class. | |
10 | ||
bf085665 | 11 | Note that \helpref{SeekI()}{wxinputstreamseeki} |
a84e46f2 VS |
12 | can seek beyond the end of the stream (file) and will thus not return |
13 | {\it wxInvalidOffset} for that. | |
842d6c94 RR |
14 | |
15 | \wxheading{Derived from} | |
16 | ||
17 | \helpref{wxInputStream}{wxinputstream} | |
18 | ||
19 | \wxheading{Include files} | |
20 | ||
21 | <wx/wfstream.h> | |
22 | ||
23 | \wxheading{See also} | |
24 | ||
25 | \helpref{wxBufferedInputStream}{wxbufferedinputstream}, \helpref{wxFFileOutputStream}{wxffileoutputstream}, \helpref{wxFileOutputStream}{wxfileoutputstream} | |
26 | ||
27 | % ---------- | |
28 | % Members | |
29 | % ---------- | |
30 | \latexignore{\rtfignore{\wxheading{Members}}} | |
31 | ||
b236c10f | 32 | \membersection{wxFFileInputStream::wxFFileInputStream}\label{wxffileinputstreamctor} |
842d6c94 | 33 | |
5fec5bb6 | 34 | \func{}{wxFFileInputStream}{\param{const wxString\&}{ filename}, \param{const wxChar *}{ mode = "rb"}} |
842d6c94 | 35 | |
5fec5bb6 | 36 | Opens the specified file using its {\it filename} name using the specified mode. |
842d6c94 RR |
37 | |
38 | \func{}{wxFFileInputStream}{\param{wxFFile\&}{ file}} | |
39 | ||
40 | Initializes a file stream in read-only mode using the file I/O object {\it file}. | |
41 | ||
42 | \func{}{wxFFileInputStream}{\param{FILE *}{ fp}} | |
43 | ||
44 | Initializes a file stream in read-only mode using the specified file pointer {\it fp}. | |
45 | ||
b236c10f | 46 | \membersection{wxFFileInputStream::\destruct{wxFFileInputStream}}\label{wxffileinputstreamdtor} |
842d6c94 RR |
47 | |
48 | \func{}{\destruct{wxFFileInputStream}}{\void} | |
49 | ||
50 | Destructor. | |
51 | ||
b7cacb43 | 52 | \membersection{wxFFileInputStream::IsOk}\label{wxffileinputstreamisok} |
842d6c94 | 53 | |
b7cacb43 | 54 | \constfunc{bool}{IsOk}{\void} |
842d6c94 | 55 | |
cc81d32f | 56 | Returns true if the stream is initialized and ready. |
842d6c94 RR |
57 | |
58 | % ----------------------------------------------------------------------------- | |
59 | % wxFFileOutputStream | |
60 | % ----------------------------------------------------------------------------- | |
61 | \section{\class{wxFFileOutputStream}}\label{wxffileoutputstream} | |
62 | ||
63 | This class represents data written to a file. There are actually | |
fa482912 | 64 | two such groups of classes: this one is based on \helpref{wxFFile}{wxffile} |
842d6c94 RR |
65 | whereas \helpref{wxFileInputStream}{wxffileinputstream} is based in |
66 | the \helpref{wxFile}{wxfile} class. | |
67 | ||
bf085665 | 68 | Note that \helpref{SeekO()}{wxoutputstreamseeko} |
a84e46f2 VS |
69 | can seek beyond the end of the stream (file) and will thus not return |
70 | {\it wxInvalidOffset} for that. | |
842d6c94 RR |
71 | |
72 | \wxheading{Derived from} | |
73 | ||
74 | \helpref{wxOutputStream}{wxoutputstream} | |
75 | ||
76 | \wxheading{Include files} | |
77 | ||
78 | <wx/wfstream.h> | |
79 | ||
80 | \wxheading{See also} | |
81 | ||
82 | \helpref{wxBufferedOutputStream}{wxbufferedoutputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}, \helpref{wxFileInputStream}{wxfileinputstream} | |
83 | ||
84 | % ---------- | |
85 | % Members | |
86 | % ---------- | |
87 | \latexignore{\rtfignore{\wxheading{Members}}} | |
88 | ||
b236c10f | 89 | \membersection{wxFFileOutputStream::wxFFileOutputStream}\label{wxffileoutputstreamctor} |
842d6c94 | 90 | |
5fec5bb6 | 91 | \func{}{wxFFileOutputStream}{\param{const wxString\&}{ filename}, \param{const wxChar *}{ mode="w+b"}} |
842d6c94 | 92 | |
5fec5bb6 | 93 | Opens the file with the given {\it filename} name in the specified mode. |
842d6c94 RR |
94 | |
95 | \func{}{wxFFileOutputStream}{\param{wxFFile\&}{ file}} | |
96 | ||
97 | Initializes a file stream in write-only mode using the file I/O object {\it file}. | |
98 | ||
99 | \func{}{wxFFileOutputStream}{\param{FILE *}{ fp}} | |
100 | ||
101 | Initializes a file stream in write-only mode using the file descriptor {\it fp}. | |
102 | ||
b236c10f | 103 | \membersection{wxFFileOutputStream::\destruct{wxFFileOutputStream}}\label{wxffileoutputstreamdtor} |
842d6c94 RR |
104 | |
105 | \func{}{\destruct{wxFFileOutputStream}}{\void} | |
106 | ||
107 | Destructor. | |
108 | ||
b7cacb43 | 109 | \membersection{wxFFileOutputStream::IsOk}\label{wxffileoutputstreamisok} |
842d6c94 | 110 | |
b7cacb43 | 111 | \constfunc{bool}{IsOk}{\void} |
842d6c94 | 112 | |
cc81d32f | 113 | Returns true if the stream is initialized and ready. |
842d6c94 RR |
114 | |
115 | % ----------------------------------------------------------------------------- | |
116 | % wxFFileStream | |
117 | % ----------------------------------------------------------------------------- | |
569ef72a | 118 | \section{\class{wxFFileStream}}\label{wxffilestream} |
842d6c94 RR |
119 | |
120 | \wxheading{Derived from} | |
121 | ||
c0ffb626 | 122 | \helpref{wxFFileOutputStream}{wxffileoutputstream}, \helpref{wxFFileInputStream}{wxffileinputstream} |
842d6c94 RR |
123 | |
124 | \wxheading{Include files} | |
125 | ||
126 | <wx/wfstream.h> | |
127 | ||
128 | \wxheading{See also} | |
129 | ||
c0ffb626 | 130 | \helpref{wxStreamBuffer}{wxstreambuffer} |
842d6c94 RR |
131 | |
132 | \latexignore{\rtfignore{\wxheading{Members}}} | |
133 | ||
b236c10f | 134 | \membersection{wxFFileStream::wxFFileStream}\label{wxffilestreamctor} |
842d6c94 RR |
135 | |
136 | \func{}{wxFFileStream}{\param{const wxString\&}{ iofileName}} | |
137 | ||
138 | Initializes a new file stream in read-write mode using the specified | |
605d715d | 139 | {\it iofilename} name. |
842d6c94 RR |
140 | |
141 |