]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/outptstr.tex
fixed corrupted file, checked in as text file now
[wxWidgets.git] / docs / latex / wx / outptstr.tex
CommitLineData
e2a6f233
JS
1% -----------------------------------------------------------------------------
2% wxOutputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxOutputStream}}\label{wxoutputstream}
5
d984207c
RR
6wxOutputStream is an abstract base class which may not be used directly.
7
e2a6f233
JS
8\wxheading{Derived from}
9
10\helpref{wxStreamBase}{wxstreambase}
11
954b8ae6
JS
12\wxheading{Include files}
13
14<wx/stream.h>
15
fa482912
JS
16\latexignore{\rtfignore{\wxheading{Members}}}
17
e2a6f233
JS
18% -----------
19% ctor & dtor
20% -----------
b68b06e2 21
e2a6f233
JS
22\membersection{wxOutputStream::wxOutputStream}
23
24\func{}{wxOutputStream}{\void}
25
26Creates a dummy wxOutputStream object.
27
b68b06e2 28
e2a6f233
JS
29\membersection{wxOutputStream::\destruct{wxOutputStream}}
30
31\func{}{\destruct{wxOutputStream}}{\void}
32
33Destructor.
34
b68b06e2
VZ
35
36\membersection{wxOutputStream::LastWrite}\label{wxoutputstreamlastwrite}
e2a6f233 37
294e9a7a 38\constfunc{size\_t}{LastWrite}{\void}
e2a6f233 39
b68b06e2
VZ
40Returns the number of bytes written during the last
41\helpref{Write()}{wxoutputstreamwrite}. It may return $0$ even if there is no
42error on the stream if it is only temporarily impossible to write to it.
43
d984207c 44
40b480c3 45\membersection{wxOutputStream::PutC}
e2a6f233 46
40b480c3 47\func{void}{PutC}{\param{char}{ c}}
e2a6f233 48
40b480c3
JS
49Puts the specified character in the output queue and increments the
50stream position.
e2a6f233 51
b68b06e2 52
0915d0b2 53\membersection{wxOutputStream::SeekO}\label{wxoutputstreamseeko}
e2a6f233 54
a84e46f2 55\func{off\_t}{SeekO}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}}
e2a6f233
JS
56
57Changes the stream current position.
58
a84e46f2
VS
59\wxheading{Parameters}
60
61\docparam{pos}{Offset to seek to.}
62
63\docparam{mode}{One of {\bf wxFromStart}, {\bf wxFromEnd}, {\bf wxFromCurrent}.}
64
65\wxheading{Return value}
66
67The new stream position or wxInvalidOffset on error.
68
b68b06e2 69
e2a6f233
JS
70\membersection{wxOutputStream::TellO}
71
294e9a7a 72\constfunc{off\_t}{TellO}{\void}
e2a6f233
JS
73
74Returns the current stream position.
75
b68b06e2
VZ
76
77\membersection{wxOutputStream::Write}\label{wxoutputstreamwrite}
e2a6f233 78
294e9a7a 79\func{wxOutputStream\&}{Write}{\param{const void *}{buffer}, \param{size\_t}{ size}}
e2a6f233 80
b68b06e2
VZ
81Writes up to the specified amount of bytes using the data of {\it buffer}. Note
82that not all data can always be written so you must check the number of bytes
83really written to the stream using \helpref{LastWrite()}{wxoutputstreamlastwrite}
84when this function returns. In some cases (for example a write end of a pipe
85which is currently full) it is even possible that there is no errors and zero
86bytes have been written.
e2a6f233 87
40b480c3
JS
88This function returns a reference on the current object, so the user can test
89any states of the stream right away.
e2a6f233 90
294e9a7a 91\func{wxOutputStream\&}{Write}{\param{wxInputStream\&}{ stream\_in}}
40b480c3
JS
92
93Reads data from the specified input stream and stores them
94in the current stream. The data is read until an error is raised
95by one of the two streams.
e2a6f233 96