Page 1 of 1

Deriving from wxFilterOutput/InputStream

Posted: Fri Jul 28, 2006 7:29 am
by relix
When implementing a full-fledged stream derived from wxFilterOutput/InputStream, what functions should it override? Obviously OnSysRead and OnSysWrite, but what about seeking, telling, and errors? GetLength and GetSize? Do the functions it doesn't override just get called on the parent-stream (m_parent_i/o_stream) or do they give an error, or just nothing?

Posted: Wed Oct 04, 2006 11:00 am
by Cursor
When you derive from wx[...]Input/outputStream, you must overide OnSysRead and OnSysWrite. OnSysTell and OnSysSeek do nothing by default.
Note that IsSeekable() returns false by default.