]>
Commit | Line | Data |
---|---|---|
e2cad352 GL |
1 | % ----------------------------------------------------------------------------- |
2 | % wxFileInputStream | |
3 | % ----------------------------------------------------------------------------- | |
4 | \section{\class{wxFileInputStream}}\label{wxfileinputstream} | |
5 | ||
65045edd RR |
6 | This classes represent data streams to and from a file. There are actually |
7 | two such groups of classes: those documented here, and another group called | |
8 | wxFFileInputStream, wxFFileOutputStream and wxFFileStream which are not | |
9 | based on file descriptors (and their wxWindows equivalent wxFile) but the | |
10 | FILE* type (and wxFFile). Apart from the different constructor ("FILE *file" | |
11 | instead if "int fd") their interface is identical. | |
12 | ||
e2cad352 GL |
13 | \wxheading{Derived from} |
14 | ||
15 | \helpref{wxInputStream}{wxinputstream} | |
16 | ||
954b8ae6 JS |
17 | \wxheading{Include files} |
18 | ||
19 | <wx/wfstream.h> | |
20 | ||
e2cad352 GL |
21 | \wxheading{See also} |
22 | ||
23 | \helpref{wxStreamBuffer}{wxstreamBuffer} | |
24 | ||
25 | % ---------- | |
26 | % Members | |
27 | % ---------- | |
28 | \latexignore{\rtfignore{\wxheading{Members}}} | |
29 | ||
30 | \membersection{wxFileInputStream::wxFileInputStream} | |
31 | ||
4dba84be | 32 | \func{}{wxFileInputStream}{\param{const wxString\&}{ ifileName}} |
e2cad352 GL |
33 | |
34 | Opens the specified file using its \it{ifilename} name in read-only mode. | |
35 | ||
4dba84be | 36 | \func{}{wxFileInputStream}{\param{wxFile\&}{ file}} |
e2cad352 GL |
37 | |
38 | Initializes a file stream in read-only mode using the file I/O object \it{file}. | |
39 | ||
4dba84be | 40 | \func{}{wxFileInputStream}{\param{int}{ fd}} |
e2cad352 GL |
41 | |
42 | Initializes a file stream in read-only mode using the specified file descriptor. | |
43 | ||
44 | \membersection{wxFileInputStream::\destruct{wxFileInputStream}} | |
4dba84be JS |
45 | |
46 | \func{}{\destruct{wxFileInputStream}}{\void} | |
e2cad352 GL |
47 | |
48 | Destructor. | |
49 | ||
50 | \membersection{wxFileInputStream::Ok} | |
4dba84be | 51 | |
e2cad352 GL |
52 | \constfunc{bool}{Ok}{\void} |
53 | ||
54 | Returns TRUE if the stream is initialized and ready. | |
55 | ||
56 | % ----------------------------------------------------------------------------- | |
57 | % wxFileOutputStream | |
58 | % ----------------------------------------------------------------------------- | |
59 | \section{\class{wxFileOutputStream}}\label{wxfileoutputstream} | |
60 | ||
61 | \wxheading{Derived from} | |
62 | ||
63 | \helpref{wxOutputStream}{wxoutputstream} | |
64 | ||
954b8ae6 JS |
65 | \wxheading{Include files} |
66 | ||
67 | <wx/wfstream.h> | |
68 | ||
e2cad352 GL |
69 | \wxheading{See also} |
70 | ||
71 | \helpref{wxStreamBuffer}{wxstreamBuffer} | |
72 | ||
73 | % ---------- | |
74 | % Members | |
75 | % ---------- | |
76 | \latexignore{\rtfignore{\wxheading{Members}}} | |
77 | ||
78 | \membersection{wxFileOutputStream::wxFileOutputStream} | |
79 | ||
4dba84be | 80 | \func{}{wxFileOutputStream}{\param{const wxString\&}{ ofileName}} |
e2cad352 GL |
81 | |
82 | Creates a new file with \it{ofilename} name and initializes the stream in | |
83 | write-only mode. | |
84 | ||
294e9a7a | 85 | \func{}{wxFileOutputStream}{\param{wxFile\&}{ file}} |
4dba84be | 86 | |
e2cad352 GL |
87 | Initializes a file stream in write-only mode using the file I/O object \it{file}. |
88 | ||
89 | \func{}{wxFileOutputStream}{\param{int}{ fd}} | |
4dba84be | 90 | |
e2cad352 GL |
91 | Initializes a file stream in write-only mode using the file descriptor \it{fd}. |
92 | ||
93 | \membersection{wxFileOutputStream::\destruct{wxFileOutputStream}} | |
4dba84be JS |
94 | |
95 | \func{}{\destruct{wxFileOutputStream}}{\void} | |
e2cad352 GL |
96 | |
97 | Destructor. | |
98 | ||
99 | \membersection{wxFileOutputStream::Ok} | |
4dba84be | 100 | |
e2cad352 GL |
101 | \constfunc{bool}{Ok}{\void} |
102 | ||
103 | Returns TRUE if the stream is initialized and ready. | |
104 | ||
105 | % ----------------------------------------------------------------------------- | |
106 | % wxFileStream | |
107 | % ----------------------------------------------------------------------------- | |
108 | \section{\class{wxFileStream}} | |
109 | ||
110 | \wxheading{Derived from} | |
111 | ||
112 | \helpref{wxFileOutputStream}{wxFileOutputStream}, \helpref{wxFileInputStream}{wxfileinputstream} | |
113 | ||
954b8ae6 JS |
114 | \wxheading{Include files} |
115 | ||
116 | <wx/wfstream.h> | |
117 | ||
e2cad352 GL |
118 | \wxheading{See also} |
119 | ||
120 | \helpref{wxStreamBuffer}{wxstreamBuffer} | |
121 | ||
122 | \latexignore{\rtfignore{\wxheading{Members}}} | |
123 | ||
124 | \membersection{wxFileStream::wxFileStream} | |
125 | ||
4dba84be | 126 | \func{}{wxFileStream}{\param{const wxString\&}{ iofileName}} |
e2cad352 | 127 | |
4dba84be | 128 | Initializes a new file stream in read-write mode using the specified |
e2cad352 GL |
129 | \it{iofilename} name. |
130 |