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
}
25 \func{}{wxStreamBase
}{\void}
27 Creates a dummy stream object.
29 \membersection{wxStreamBase::
\destruct{wxStreamBase
}}
31 \func{}{\destruct{wxStreamBase
}}
35 \membersection{wxStreamBase::LastError
}
37 \constfunc{wxStreamError
}{LastError
}{\void}
39 This function returns the last error.
43 \membersection{wxStreamBase::StreamSize
}
44 \constfunc{size_t
}{StreamSize
}{\void}
46 This function returns the size of the stream. For example, for a file it is the size of
47 the file). Warning! There are streams which do not have size by definition, such as a socket.
49 \membersection{wxStreamBase::OnSysRead
}\label{wxstreambaseonsysread
}
51 \func{size_t
}{OnSysRead
}{\param{void*
}{ buffer
},
\param{size_t
}{ bufsize
}}
53 Internal function. It is called when the stream buffer needs a buffer of the
54 specified size. It should return the size that was actually read.
56 \membersection{wxStreamBase::OnSysWrite
}
58 \func{size_t
}{OnSysWrite
}{\param{void *
}{buffer
},
\param{size_t
}{ bufsize
}}
60 See
\helpref{OnSysRead
}{wxstreambaseonsysread
}.
62 \membersection{wxStreamBase::OnSysSeek
}
64 \func{off_t
}{OnSysSeek
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}{ mode
}}
66 Internal function. It is called when the stream buffer needs to change the
67 current position in the stream. See
\helpref{wxStreamBuffer::Seek
}{wxstreambufferseek
}
69 \membersection{wxStreamBase::OnSysTell
}
71 \constfunc{off_t
}{OnSysTell
}{\void}
73 Internal function. Is is called when the stream buffer needs to know the
74 current position in the stream.
76 % -----------------------------------------------------------------------------
78 % -----------------------------------------------------------------------------
79 \section{\class{wxInputStream
}}\label{wxinputstream
}
81 \wxheading{Derived from
}
83 \helpref{wxStreamBase
}{wxstreambase
}
87 \helpref{wxStreamBuffer
}{wxstreambuffer
}
92 \membersection{wxInputStream::wxInputStream
}
94 \func{}{wxInputStream
}{\void}
96 Creates a dummy input stream.
98 \func{}{wxInputStream
}{\param{wxStreamBuffer *
}{sbuf
}}
100 Creates an input stream using the specified stream buffer
\it{sbuf
}. This
101 stream buffer can point to another stream.
103 \membersection{wxInputStream::
\destruct{wxInputStream
}}
105 \func{}{\destruct{wxInputStream
}}
112 \membersection{wxInputStream::Peek
}
114 \func{char
}{Peek
}{\void}
116 Returns the first character in the input queue without removing it.
118 \membersection{wxInputStream::GetC
}
120 \func{char
}{GetC
}{\void}
122 Returns the first character in the input queue and removes it.
124 \membersection{wxInputStream::Read
}
126 \func{wxInputStream\&
}{Read
}{\param{void *
}{buffer
},
\param{size_t
}{ size
}}
128 Reads the specified amount of bytes and stores the data in
\it{buffer
}.
130 \it{WARNING!
} The buffer absolutely needs to have at least the specified size.
132 This function returns a reference on the current object, so the user can test
133 any states of the stream right away.
135 \func{wxInputStream\&
}{Read
}{\param{wxOutputStream\&
}{ stream_out
}}
137 Reads data from the input queue and stores it in the specified output stream.
138 The data is read until an error is raised by one of the two streams.
143 \membersection{wxInputStream::SeekI
}
145 \func{off_t
}{SeekI
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}{ mode = wxFromStart
}}
147 Changes the stream current position.
149 \membersection{wxInputStream::TellI
}
151 \constfunc{off_t
}{TellI
}{\void}
153 Returns the current stream position.
158 \membersection{wxInputStream::InputStreamBuffer
}
160 \func{wxStreamBuffer*
}{InputStreamBuffer
}{\void}
162 Returns the stream buffer associated with the input stream.
164 \membersection{wxInputStream::LastRead
}
166 \constfunc{size_t
}{LastRead
}{\void}
168 Returns the last amount of bytes read.
170 % -----------------------------------------------------------------------------
172 % -----------------------------------------------------------------------------
173 \section{\class{wx0utputStream
}}\label{wxoutputstream
}
175 \wxheading{Derived from
}
177 \helpref{wxStreamBase
}{wxstreambase
}
181 \helpref{wxStreamBuffer
}{wxstreambuffer
}
186 \membersection{wxOutputStream::wxOutputStream
}
188 \func{}{wxOutputStream
}{\void}
190 Creates a dummy wxOutputStream object.
192 \func{}{wxOutputStream
}{\param{wxStreamBuffer*
}{ sbuf
}}
194 Creates an input stream using the specified stream buffer
\it{sbuf
}. This
195 stream buffer can point to another stream.
197 \membersection{wxOutputStream::
\destruct{wxOutputStream
}}
199 \func{}{\destruct{wxOutputStream
}}
206 \membersection{wxOutputStream::PutC
}
208 \func{void
}{PutC
}{\param{char
}{ c
}}
210 Puts the specified character in the output queue and increments the
213 \membersection{wxOutputStream::Write
}
215 \func{wxOutputStream\&
}{Write
}{\param{const void *
}{buffer
},
\param{size_t
}{ size
}}
217 Writes the specified amount of bytes using the data of
\it{buffer
}.
218 \it{WARNING!
} The buffer absolutely needs to have at least the specified size.
220 This function returns a reference on the current object, so the user can test
221 any states of the stream right away.
223 \func{wxOutputStream\&
}{Write
}{\param{wxInputStream\&
}{ stream_in
}}
225 Reads data from the specified input stream and stores them
226 in the current stream. The data is read until an error is raised
227 by one of the two streams.
232 \membersection{wxOutputStream::SeekO
}
234 \func{off_t
}{SeekO
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}}
236 Changes the stream current position.
238 \membersection{wxOutputStream::TellO
}
240 \constfunc{off_t
}{TellO
}{\void}
242 Returns the current stream position.
247 \membersection{wxOutputStream::OutputStreamBuffer
}
249 \func{wxStreamBuffer *
}{OutputStreamBuffer
}{\void}
251 Returns the stream buffer associated with the output stream.
253 \membersection{wxOutputStream::LastWrite
}
255 \constfunc{size_t
}{LastWrite
}{\void}
257 % -----------------------------------------------------------------------------
258 % wxFilterInputStream
259 % -----------------------------------------------------------------------------
260 \section{\class{wxFilterInputStream
}}\label{wxfilterinputstream
}
262 \wxheading{Derived from
}
264 \helpref{wxInputStream
}{wxinputstream
}
268 The use of this class is exactly the same as of wxInputStream. Only a constructor
269 differs and it is documented below.
274 \membersection{wxFilterInputStream::wxFilterInputStream
}
276 \func{}{wxFilterInputStream
}{\param{wxInputStream\&
}{ stream
}}
278 % -----------------------------------------------------------------------------
279 % wxFilterOutputStream
280 % -----------------------------------------------------------------------------
281 \section{\class{wxFilterOutputStream
}}\label{wxfilteroutputstream
}
283 \wxheading{Derived from
}
285 \helpref{wxOutputStream
}{wxoutputstream
}
289 The use of this class is exactly the same as of wxOutputStream. Only a constructor
290 differs and it is documented below.
295 \membersection{wxFilterOutputStream::wxFilterOutputStream
}
297 \func{}{wxFilterOutputStream
}{\param{wxOutputStream\&
}{ stream
}}