#include <stream.h>
Public Member Functions | |
virtual bool | err () const |
virtual void | clearErr () |
Virtual base class for both ReadStream and WriteStream.
|
inlinevirtual |
Return true if an I/O failure occurred.
This flag is never cleared automatically. In order to clear it, the client code must call clearErr() explicitly.
Reimplemented in Common::SeekableReadStreamEndianWrapper, Common::MemorySeekableReadWriteStream, Common::DumpFile, Common::MemoryWriteStream, Common::File, OutPAKSave, OutFRAMSave, Tinsel::TinselFile, PspIoStream, Common::OutSaveFile, Gob::SaveConverter, Common::SubReadStream, StdioStream, Common::ConcatReadStream, RomfsStream, TwinE::LzssReadStream, and Grim::PackFile.
|
inlinevirtual |
Reset the I/O error status as returned by err().
For a ReadStream, also reset the end-of-stream status returned by eos().
Reimplemented in Common::SeekableReadStreamEndianWrapper, Common::MemorySeekableReadWriteStream, Common::MemoryReadWriteStream, Common::DumpFile, Common::MemoryWriteStream, Common::File, OutPAKSave, OutFRAMSave, Common::MemoryReadStream, Scumm::ScummFile, Tinsel::TinselFile, PspIoStream, Common::OutSaveFile, Gob::SaveConverter, Common::SubReadStream, StdioStream, Common::ConcatReadStream, InFRAMSave, InPAKSave, RomfsStream, TwinE::LzssReadStream, and Grim::PackFile.