]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/inputstr.tex
Some doc corrections (added blank lines at end of docs); corrected Forty sample
[wxWidgets.git] / docs / latex / wx / inputstr.tex
CommitLineData
e2a6f233
JS
1% -----------------------------------------------------------------------------
2% wxInputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxInputStream}}\label{wxinputstream}
5
6\wxheading{Derived from}
7
8\helpref{wxStreamBase}{wxstreambase}
9
10\wxheading{See also}
11
12\helpref{wxStreamBuffer}{wxstreambuffer}
13
14% -----------
15% ctor & dtor
16% -----------
17\membersection{wxInputStream::wxInputStream}
18
19\func{}{wxInputStream}{\void}
20
21Creates a dummy input stream.
22
23\func{}{wxInputStream}{\param{wxStreamBuffer *}{sbuf}}
24
25Creates an input stream using the specified stream buffer \it{sbuf}. This
26stream buffer can point to another stream.
27
28\membersection{wxInputStream::\destruct{wxInputStream}}
29
30\func{}{\destruct{wxInputStream}}{\void}
31
32Destructor.
33
34% -----------
35% IO function
36% -----------
37\membersection{wxInputStream::Peek}
38
39\func{char}{Peek}{\void}
40
41Returns the first character in the input queue without removing it.
42
43\membersection{wxInputStream::GetC}
44
45\func{char}{GetC}{\void}
46
47Returns the first character in the input queue and removes it.
48
49\membersection{wxInputStream::Read}
50
51\func{wxInputStream\&}{Read}{\param{void *}{buffer}, \param{size_t}{ size}}
52
53Reads the specified amount of bytes and stores the data in \it{buffer}.
54
da3aea64
GL
55\wxheading{Warning}
56
57The buffer absolutely needs to have at least the specified size.
58
59\wxheading{Return value}
e2a6f233
JS
60
61This function returns a reference on the current object, so the user can test
62any states of the stream right away.
63
64\func{wxInputStream\&}{Read}{\param{wxOutputStream\&}{ stream_out}}
65
66Reads data from the input queue and stores it in the specified output stream.
67The data is read until an error is raised by one of the two streams.
68
da3aea64
GL
69\wxheading{Return value}
70
71This function returns a reference on the current object, so the user can test
72any states of the stream right away.
73
e2a6f233
JS
74% ------------------
75% Position functions
76% ------------------
77\membersection{wxInputStream::SeekI}
78
79\func{off_t}{SeekI}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}}
80
81Changes the stream current position.
82
83\membersection{wxInputStream::TellI}
84
85\constfunc{off_t}{TellI}{\void}
86
87Returns the current stream position.
88
89% ---------------
90% State functions
91% ---------------
92\membersection{wxInputStream::InputStreamBuffer}
93
94\func{wxStreamBuffer*}{InputStreamBuffer}{\void}
95
96Returns the stream buffer associated with the input stream.
97
98\membersection{wxInputStream::LastRead}
99
100\constfunc{size_t}{LastRead}{\void}
101
102Returns the last number of bytes read.
103