]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/fileostr.tex
finished implementation for stencil and colored patterns
[wxWidgets.git] / docs / latex / wx / fileostr.tex
CommitLineData
1106d865
VZ
1% -----------------------------------------------------------------------------
2% wxFileOutputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxFileOutputStream}}\label{wxfileoutputstream}
5
6This class represents data written to a file. There are actually
7two such groups of classes: this one is based on \helpref{wxFile}{wxfile}
8whereas \helpref{wxFFileInputStream}{wxffileinputstream} is based in
9the \helpref{wxFFile}{wxffile} class.
10
11Note that \helpref{wxFile}{wxfile} and \helpref{wxFFile}{wxffile} differ
12in one aspect, namely when to report that the end of the file has been
13reached. This is documented in \helpref{wxFile::Eof}{wxfileeof} and
14\helpref{wxFFile::Eof}{wxffileeof} and the behaviour of the stream
15classes reflects this difference, i.e. wxFileInputStream will report
16wxSTREAM\_EOF after having read the last byte whereas wxFFileInputStream
17will report wxSTREAM\_EOF after trying to read {\it past} the last byte.
a84e46f2
VS
18Related to EOF behavior, note that \helpref{SeekO()}{wxoutputstreamseeko}
19can seek beyond the end of the stream (file) and will thus not return
20{\it wxInvalidOffset} for that.
1106d865
VZ
21
22\wxheading{Derived from}
23
24\helpref{wxOutputStream}{wxoutputstream}
25
26\wxheading{Include files}
27
28<wx/wfstream.h>
29
30\wxheading{See also}
31
32\helpref{wxBufferedOutputStream}{wxbufferedoutputstream}, \helpref{wxFileInputStream}{wxfileinputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}
33
34% ----------
35% Members
36% ----------
37\latexignore{\rtfignore{\wxheading{Members}}}
38
b236c10f 39\membersection{wxFileOutputStream::wxFileOutputStream}\label{wxfileoutputstreamctor}
1106d865
VZ
40
41\func{}{wxFileOutputStream}{\param{const wxString\&}{ ofileName}}
42
43Creates a new file with {\it ofilename} name and initializes the stream in
44write-only mode.
45
46\func{}{wxFileOutputStream}{\param{wxFile\&}{ file}}
47
48Initializes a file stream in write-only mode using the file I/O object {\it file}.
49
50\func{}{wxFileOutputStream}{\param{int}{ fd}}
51
52Initializes a file stream in write-only mode using the file descriptor {\it fd}.
53
b236c10f 54\membersection{wxFileOutputStream::\destruct{wxFileOutputStream}}\label{wxfileoutputstreamdtor}
1106d865
VZ
55
56\func{}{\destruct{wxFileOutputStream}}{\void}
57
58Destructor.
59
b236c10f 60\membersection{wxFileOutputStream::Ok}\label{wxfileoutputstreamok}
1106d865
VZ
61
62\constfunc{bool}{Ok}{\void}
63
cc81d32f 64Returns true if the stream is initialized and ready.
1106d865 65