Deriving from wxFilterOutput/InputStream

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
relix
In need of some credit
In need of some credit
Posts: 1
Joined: Fri Jul 28, 2006 7:12 am

Deriving from wxFilterOutput/InputStream

Post by relix » Fri Jul 28, 2006 7:29 am

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?

Cursor
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Aug 29, 2004 3:09 pm
Location: Grenoble, France
Contact:

Post by Cursor » Wed Oct 04, 2006 11:00 am

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.
What is little and green, witch go up and down ??
Yoda playing with the force.

Post Reply