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