Roland Niekisch wrote:
> Hi,
> 
> is there a standard way for canceling a read operation started with 
> SceneFileHandler::read()? At the first look i couldn't find any 
> callbacks for this. The only solution i found was writing a decorator 
> for the input istream. Changing std::istream:eof() would result in the 
> wanted behaviour, but i am not sure if all  SceneFileType classes will 
> handle this correct.

I don't see why it shouldn't work.

However, what do you mean by changing eof? The way I'd do it would 
probably be to set the badbit on the rdbuf.

You might need to take care of threading issues though, but that should 
be possible to do purely within the istream object.

Cheers,
/Marcus

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to