]>
Commit | Line | Data |
---|---|---|
e2a6f233 JS |
1 | % ----------------------------------------------------------------------------- |
2 | % wxOutputStream | |
3 | % ----------------------------------------------------------------------------- | |
4 | \section{\class{wxOutputStream}}\label{wxoutputstream} | |
5 | ||
d984207c RR |
6 | wxOutputStream 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 | |
6d06e061 | 22 | \membersection{wxOutputStream::wxOutputStream}\label{wxoutputstreamctor} |
e2a6f233 JS |
23 | |
24 | \func{}{wxOutputStream}{\void} | |
25 | ||
26 | Creates a dummy wxOutputStream object. | |
27 | ||
b68b06e2 | 28 | |
6d06e061 | 29 | \membersection{wxOutputStream::\destruct{wxOutputStream}}\label{wxoutputstreamdtor} |
e2a6f233 JS |
30 | |
31 | \func{}{\destruct{wxOutputStream}}{\void} | |
32 | ||
33 | Destructor. | |
34 | ||
b68b06e2 VZ |
35 | |
36 | \membersection{wxOutputStream::LastWrite}\label{wxoutputstreamlastwrite} | |
e2a6f233 | 37 | |
294e9a7a | 38 | \constfunc{size\_t}{LastWrite}{\void} |
e2a6f233 | 39 | |
b68b06e2 VZ |
40 | Returns the number of bytes written during the last |
41 | \helpref{Write()}{wxoutputstreamwrite}. It may return $0$ even if there is no | |
42 | error on the stream if it is only temporarily impossible to write to it. | |
43 | ||
d984207c | 44 | |
dcbd177f | 45 | \membersection{wxOutputStream::PutC}\label{wxoutputstreamputc} |
e2a6f233 | 46 | |
40b480c3 | 47 | \func{void}{PutC}{\param{char}{ c}} |
e2a6f233 | 48 | |
40b480c3 JS |
49 | Puts the specified character in the output queue and increments the |
50 | stream 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 | |
57 | Changes 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 | ||
67 | The new stream position or wxInvalidOffset on error. | |
68 | ||
b68b06e2 | 69 | |
a203f6c0 | 70 | \membersection{wxOutputStream::TellO}\label{wxoutputstreamtello} |
e2a6f233 | 71 | |
294e9a7a | 72 | \constfunc{off\_t}{TellO}{\void} |
e2a6f233 JS |
73 | |
74 | Returns 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 |
81 | Writes up to the specified amount of bytes using the data of {\it buffer}. Note |
82 | that not all data can always be written so you must check the number of bytes | |
83 | really written to the stream using \helpref{LastWrite()}{wxoutputstreamlastwrite} | |
84 | when this function returns. In some cases (for example a write end of a pipe | |
85 | which is currently full) it is even possible that there is no errors and zero | |
86 | bytes have been written. | |
e2a6f233 | 87 | |
40b480c3 JS |
88 | This function returns a reference on the current object, so the user can test |
89 | any states of the stream right away. | |
e2a6f233 | 90 | |
294e9a7a | 91 | \func{wxOutputStream\&}{Write}{\param{wxInputStream\&}{ stream\_in}} |
40b480c3 JS |
92 | |
93 | Reads data from the specified input stream and stores them | |
94 | in the current stream. The data is read until an error is raised | |
95 | by one of the two streams. | |
e2a6f233 | 96 |