]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/strmfile.tex
wxHtmlCell::AdjustPagebreak documented
[wxWidgets.git] / docs / latex / wx / strmfile.tex
1 % -----------------------------------------------------------------------------
2 % wxFileInputStream
3 % -----------------------------------------------------------------------------
4 \section{\class{wxFileInputStream}}\label{wxfileinputstream}
5
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
13 \wxheading{Derived from}
14
15 \helpref{wxInputStream}{wxinputstream}
16
17 \wxheading{Include files}
18
19 <wx/wfstream.h>
20
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
32 \func{}{wxFileInputStream}{\param{const wxString\&}{ ifileName}}
33
34 Opens the specified file using its \it{ifilename} name in read-only mode.
35
36 \func{}{wxFileInputStream}{\param{wxFile\&}{ file}}
37
38 Initializes a file stream in read-only mode using the file I/O object \it{file}.
39
40 \func{}{wxFileInputStream}{\param{int}{ fd}}
41
42 Initializes a file stream in read-only mode using the specified file descriptor.
43
44 \membersection{wxFileInputStream::\destruct{wxFileInputStream}}
45
46 \func{}{\destruct{wxFileInputStream}}{\void}
47
48 Destructor.
49
50 \membersection{wxFileInputStream::Ok}
51
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
65 \wxheading{Include files}
66
67 <wx/wfstream.h>
68
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
80 \func{}{wxFileOutputStream}{\param{const wxString\&}{ ofileName}}
81
82 Creates a new file with \it{ofilename} name and initializes the stream in
83 write-only mode.
84
85 \func{}{wxFileOutputStream}{\param{wxFile\&}{ file}}
86
87 Initializes a file stream in write-only mode using the file I/O object \it{file}.
88
89 \func{}{wxFileOutputStream}{\param{int}{ fd}}
90
91 Initializes a file stream in write-only mode using the file descriptor \it{fd}.
92
93 \membersection{wxFileOutputStream::\destruct{wxFileOutputStream}}
94
95 \func{}{\destruct{wxFileOutputStream}}{\void}
96
97 Destructor.
98
99 \membersection{wxFileOutputStream::Ok}
100
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
114 \wxheading{Include files}
115
116 <wx/wfstream.h>
117
118 \wxheading{See also}
119
120 \helpref{wxStreamBuffer}{wxstreamBuffer}
121
122 \latexignore{\rtfignore{\wxheading{Members}}}
123
124 \membersection{wxFileStream::wxFileStream}
125
126 \func{}{wxFileStream}{\param{const wxString\&}{ iofileName}}
127
128 Initializes a new file stream in read-write mode using the specified
129 \it{iofilename} name.
130