1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxStreamBase
}}\label{wxstreambase
}
6 \wxheading{Derived from
}
12 \helpref{wxStreamBuffer
}{wxstreambuffer
}
14 % -----------------------------------------------------------------------------
16 % -----------------------------------------------------------------------------
17 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxStreamBase::wxStreamBase
}
24 \func{}{wxStreamBase
}{\void}
26 Creates a dummy stream object.
28 \membersection{wxStreamBase::
\destruct{wxStreamBase
}}
29 \func{}{\destruct{wxStreamBase
}}
33 \membersection{wxStreamBase::LastError
}
34 \constfunc{wxStreamError
}{LastError
}{\void}
36 This function returns the last happened error. It is of the form:
37 % TODOTODOTODOTODOTODOTODOTODO
39 \membersection{wxStreamBase::StreamSize
}
40 \constfunc{size_t
}{StreamSize
}{\void}
42 This function returns the size of the stream. (E.g. for a file it the size of
43 the file) Warning ! There are streams which haven't size by definition (E.g.
46 \membersection{wxStreamBase::OnSysRead
}\label{wxstreambaseonsysread
}
47 \func{size_t
}{OnSysRead
}{\param{void *
}{buffer
},
\param{size_t
}{ bufsize
}}
49 Internal function. It is called when the stream buffer needs a buffer of the
50 specified size. It should return the size which was actually read.
52 \membersection{wxStreamBase::OnSysWrite
}
53 \func{size_t
}{OnSysWrite
}{\param{void *
}{buffer
},
\param{size_t
}{ bufsize
}}
55 See
\helpref{OnSysRead
}{wxstreambaseonsysread
}.
57 \membersection{wxStreamBase::OnSysSeek
}
58 \func{off_t
}{OnSysSeek
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}{ mode
}}
60 Internal function. It is called when the stream buffer needs to change the
61 current position in the stream. See
\helpref{wxStreamBuffer::Seek
}{wxstreambufferseek
}
63 \membersection{wxStreamBase::OnSysTell
}
64 \constfunc{off_t
}{OnSysTell
}{\void}
66 Internal function. Is is called when the stream buffer needs to know the
67 current position in the stream.
69 % -----------------------------------------------------------------------------
71 % -----------------------------------------------------------------------------
73 \section{\class{wxInputStream
}}\label{wxinputstream
}
75 \wxheading{Derived from
}
77 \helpref{wxStreamBase
}{wxstreambase
}
81 \helpref{wxStreamBuffer
}{wxstreambuffer
}
87 \membersection{wxInputStream::wxInputStream
}
88 \func{}{wxInputStream
}{\void}
90 Creates a dummy input stream.
92 \func{}{wxInputStream
}{\param{wxStreamBuffer *
}{sbuf
}}
94 Creates an input stream using the specified stream buffer
\it{sbuf
}. This
95 stream buffer can point to another stream.
97 \membersection{wxInputStream::
\destruct{wxInputStream
}}
98 \func{}{\destruct{wxInputStream
}}
106 \membersection{wxInputStream::Peek
}
107 \func{char
}{Peek
}{\void}
109 Returns the first character in the input queue without removing it.
111 \membersection{wxInputStream::GetC
}
112 \func{char
}{GetC
}{\void}
114 Returns the first character in the input queue and removes it.
116 \membersection{wxInputStream::Read
}
117 \func{wxInputStream&
}{Read
}{\param{void *
}{buffer
},
\param{size_t
}{ size
}}
119 Reads the specified amount of bytes and stores the data in
\it{buffer
}.
120 \it{WARNING !
} The buffer needs absolutely to have at least the specified size.
122 This function returns a reference on the current object, so the user can test
123 any states of the stream right away.
125 \func{wxInputStream&
}{Read
}{\param{wxOutputStream&
}{ stream_out
}}
127 Reads data from the input queue and stores them in the specified output stream.
128 The data is read until an error is raised by one of the two streams.
134 \membersection{wxInputStream::SeekI
}
135 \func{off_t
}{SeekI
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}{ mode = wxFromStart
}}
137 Changes the stream current position.
139 \membersection{wxInputStream::TellI
}
140 \constfunc{off_t
}{TellI
}{\void}
142 Returns the current stream position.
148 \membersection{wxInputStream::InputStreamBuffer
}
149 \func{wxStreamBuffer *
}{InputStreamBuffer
}{\void}
151 Returns the stream buffer associated with the input stream.
153 \membersection{wxInputStream::LastRead
}
154 \constfunc{size_t
}{LastRead
}{\void}
156 Returns the last amount of bytes read.
158 % -----------------------------------------------------------------------------
160 % -----------------------------------------------------------------------------
162 \section{\class{wx0utputStream
}}\label{wxoutputstream
}
164 \wxheading{Derived from
}
166 \helpref{wxStreamBase
}{wxstreambase
}
170 \helpref{wxStreamBuffer
}{wxstreambuffer
}
176 \membersection{wxOutputStream::wxOutputStream
}
177 \func{}{wxOutputStream
}{\void}
179 Creates a dummy wxOutputStream object.
181 \func{}{wxOutputStream
}{\param{wxStreamBuffer *
}{sbuf
}}
183 Creates an input stream using the specified stream buffer
\it{sbuf
}. This
184 stream buffer can point to another stream.
186 \membersection{wxOutputStream::
\destruct{wxOutputStream
}}
187 \func{}{\destruct{wxOutputStream
}}
195 \membersection{wxOutputStream::PutC
}
196 \func{void
}{PutC
}{\param{char
}{ c
}}
198 Puts the specified character in the output queue and increments the
201 \membersection{wxOutputStream::Write
}
202 \func{wxOutputStream&
}{Write
}{\param{const void *
}{buffer
},
\param{size_t
}{ size
}}
204 Writes the specified amount of bytes using the data of
\it{buffer
}.
205 \it{WARNING !
} The buffer needs absolutely to have at least the specified size.
207 This function returns a reference on the current object, so the user can test
208 any states of the stream right away.
210 \func{wxOutputStream&
}{Write
}{\param{wxInputStream&
}{ stream_in
}}
212 Reads data from the specified input stream and stores them
213 in the current stream. The data is read until an error is raised
214 by one of the two streams.
220 \membersection{wxOutputStream::SeekO
}
221 \func{off_t
}{SeekO
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}}
223 Changes the stream current position.
225 \membersection{wxOutputStream::TellO
}
226 \constfunc{off_t
}{TellO
}{\void}
228 Returns the current stream position.
234 \membersection{wxOutputStream::OutputStreamBuffer
}
235 \func{wxStreamBuffer *
}{OutputStreamBuffer
}{\void}
237 Returns the stream buffer associated with the output stream.
239 \membersection{wxOutputStream::LastWrite
}
240 \constfunc{size_t
}{LastWrite
}{\void}
243 % -----------------------------------------------------------------------------
244 % wxFilterInputStream
245 % -----------------------------------------------------------------------------
247 \section{\class{wxFilterInputStream
}}\label{wxfilterinputstream
}
249 \wxheading{Derived from
}
251 \helpref{wxInputStream
}{wxinputstream
}
255 The use of this class is exactly the same as of wxInputStream. Only a constructor
256 differs and it is documented below.
261 \membersection{wxFilterInputStream::wxFilterInputStream
}
262 \func{}{wxFilterInputStream
}{\param{wxInputStream&
}{ stream
}}
264 % -----------------------------------------------------------------------------
265 % wxFilterOutputStream
266 % -----------------------------------------------------------------------------
268 \section{\class{wxFilterOutputStream
}}\label{wxfilteroutputstream
}
270 \wxheading{Derived from
}
272 \helpref{wxOutputStream
}{wxoutputstream
}
276 The use of this class is exactly the same as of wxOutputStream. Only a constructor
277 differs and it is documented below.
282 \membersection{wxFilterOutputStream::wxFilterOutputStream
}
283 \func{}{wxFilterOutputStream
}{\param{wxOutputStream&
}{ stream
}}