]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/ffilestr.tex
document that wxRenderer methods [are supposed to] preserve wxDC attributes
[wxWidgets.git] / docs / latex / wx / ffilestr.tex
CommitLineData
842d6c94
RR
1% -----------------------------------------------------------------------------
2% wxFFileInputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxFFileInputStream}}\label{wxffileinputstream}
5
6This class represents data read in from a file. There are actually
fa482912 7two such groups of classes: this one is based on \helpref{wxFFile}{wxffile}
842d6c94
RR
8whereas \helpref{wxFileInputStream}{wxfileinputstream} is based in
9the \helpref{wxFile}{wxfile} class.
10
bf085665 11Note that \helpref{SeekI()}{wxinputstreamseeki}
a84e46f2
VS
12can 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 36Opens the specified file using its {\it filename} name using the specified mode.
842d6c94
RR
37
38\func{}{wxFFileInputStream}{\param{wxFFile\&}{ file}}
39
40Initializes a file stream in read-only mode using the file I/O object {\it file}.
41
42\func{}{wxFFileInputStream}{\param{FILE *}{ fp}}
43
44Initializes 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
50Destructor.
51
b236c10f 52\membersection{wxFFileInputStream::Ok}\label{wxffileinputstreamok}
842d6c94
RR
53
54\constfunc{bool}{Ok}{\void}
55
cc81d32f 56Returns true if the stream is initialized and ready.
842d6c94
RR
57
58% -----------------------------------------------------------------------------
59% wxFFileOutputStream
60% -----------------------------------------------------------------------------
61\section{\class{wxFFileOutputStream}}\label{wxffileoutputstream}
62
63This class represents data written to a file. There are actually
fa482912 64two such groups of classes: this one is based on \helpref{wxFFile}{wxffile}
842d6c94
RR
65whereas \helpref{wxFileInputStream}{wxffileinputstream} is based in
66the \helpref{wxFile}{wxfile} class.
67
bf085665 68Note that \helpref{SeekO()}{wxoutputstreamseeko}
a84e46f2
VS
69can 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 93Opens the file with the given {\it filename} name in the specified mode.
842d6c94
RR
94
95\func{}{wxFFileOutputStream}{\param{wxFFile\&}{ file}}
96
97Initializes a file stream in write-only mode using the file I/O object {\it file}.
98
99\func{}{wxFFileOutputStream}{\param{FILE *}{ fp}}
100
101Initializes 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
107Destructor.
108
b236c10f 109\membersection{wxFFileOutputStream::Ok}\label{wxffileoutputstreamok}
842d6c94
RR
110
111\constfunc{bool}{Ok}{\void}
112
cc81d32f 113Returns 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
138Initializes a new file stream in read-write mode using the specified
605d715d 139{\it iofilename} name.
842d6c94
RR
140
141