]>
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 | % ----------- | |
21 | \membersection{wxOutputStream::wxOutputStream} | |
22 | ||
23 | \func{}{wxOutputStream}{\void} | |
24 | ||
25 | Creates a dummy wxOutputStream object. | |
26 | ||
e2a6f233 JS |
27 | \membersection{wxOutputStream::\destruct{wxOutputStream}} |
28 | ||
29 | \func{}{\destruct{wxOutputStream}}{\void} | |
30 | ||
31 | Destructor. | |
32 | ||
40b480c3 | 33 | \membersection{wxOutputStream::LastWrite} |
e2a6f233 | 34 | |
294e9a7a | 35 | \constfunc{size\_t}{LastWrite}{\void} |
e2a6f233 | 36 | |
d984207c RR |
37 | Returns the number of bytes written during the last Write(). |
38 | ||
40b480c3 | 39 | \membersection{wxOutputStream::PutC} |
e2a6f233 | 40 | |
40b480c3 | 41 | \func{void}{PutC}{\param{char}{ c}} |
e2a6f233 | 42 | |
40b480c3 JS |
43 | Puts the specified character in the output queue and increments the |
44 | stream position. | |
e2a6f233 | 45 | |
0915d0b2 | 46 | \membersection{wxOutputStream::SeekO}\label{wxoutputstreamseeko} |
e2a6f233 | 47 | |
294e9a7a | 48 | \func{off\_t}{SeekO}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode}} |
e2a6f233 JS |
49 | |
50 | Changes the stream current position. | |
51 | ||
52 | \membersection{wxOutputStream::TellO} | |
53 | ||
294e9a7a | 54 | \constfunc{off\_t}{TellO}{\void} |
e2a6f233 JS |
55 | |
56 | Returns the current stream position. | |
57 | ||
40b480c3 | 58 | \membersection{wxOutputStream::Write} |
e2a6f233 | 59 | |
294e9a7a | 60 | \func{wxOutputStream\&}{Write}{\param{const void *}{buffer}, \param{size\_t}{ size}} |
e2a6f233 | 61 | |
605d715d VS |
62 | Writes the specified amount of bytes using the data of {\it buffer}. |
63 | {\it WARNING!} The buffer absolutely needs to have at least the specified size. | |
e2a6f233 | 64 | |
40b480c3 JS |
65 | This function returns a reference on the current object, so the user can test |
66 | any states of the stream right away. | |
e2a6f233 | 67 | |
294e9a7a | 68 | \func{wxOutputStream\&}{Write}{\param{wxInputStream\&}{ stream\_in}} |
40b480c3 JS |
69 | |
70 | Reads data from the specified input stream and stores them | |
71 | in the current stream. The data is read until an error is raised | |
72 | by one of the two streams. | |
e2a6f233 | 73 |