ScummVM API documentation
Common::Stream Class Reference

#include <stream.h>

Inheritance diagram for Common::Stream:
Common::ReadStream Common::WriteStream Common::ReadStreamEndian Common::SeekableReadStream Common::SeekableWriteStream Common::SeekableReadStreamEndian Common::SeekableReadStreamEndian

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().

◆ clearErr()

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

Reset the I/O error status as returned by err().

For a ReadStream, also reset the end-of-stream status returned by eos().

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

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