ScummVM API documentation
Common::Stream Class Reference

#include <stream.h>

Inheritance diagram for Common::Stream:
Common::ReadStream Common::WriteStream Common::PackBitsReadStream Common::ReadStreamEndian Common::SeekableReadStream Common::SubReadStream Groovie::LzssReadStream Networking::NetworkReadStream Twp::GGBnutReader ZVision::LzssReadStream BladeRunner::SaveFileWriteStream Common::SeekableWriteStream MM::Xeen::OutFile MM::Xeen::SubWriteStream NGI::MfcArchive OutFRAMSave OutPAKSave

Public Member Functions

virtual bool err () const
 
virtual void clearErr ()
 

Detailed Description

Virtual base class for both ReadStream and WriteStream.

Member Function Documentation

◆ err()

virtual bool Common::Stream::err ( ) const
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.

Note
The semantics of any implementation of this method is supposed to match that of ISO C ferror().

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.

◆ clearErr()

virtual void Common::Stream::clearErr ( )
inlinevirtual

The documentation for this class was generated from the following file: