]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/inputstr.tex
Made wxLayoutAlgorithm more general (copes with nested sash windows)
[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
55\it{WARNING!} The buffer absolutely needs to have at least the specified size.
56
57This function returns a reference on the current object, so the user can test
58any states of the stream right away.
59
60\func{wxInputStream\&}{Read}{\param{wxOutputStream\&}{ stream_out}}
61
62Reads data from the input queue and stores it in the specified output stream.
63The data is read until an error is raised by one of the two streams.
64
65% ------------------
66% Position functions
67% ------------------
68\membersection{wxInputStream::SeekI}
69
70\func{off_t}{SeekI}{\param{off_t}{ pos}, \param{wxSeekMode}{ mode = wxFromStart}}
71
72Changes the stream current position.
73
74\membersection{wxInputStream::TellI}
75
76\constfunc{off_t}{TellI}{\void}
77
78Returns the current stream position.
79
80% ---------------
81% State functions
82% ---------------
83\membersection{wxInputStream::InputStreamBuffer}
84
85\func{wxStreamBuffer*}{InputStreamBuffer}{\void}
86
87Returns the stream buffer associated with the input stream.
88
89\membersection{wxInputStream::LastRead}
90
91\constfunc{size_t}{LastRead}{\void}
92
93Returns the last number of bytes read.
94