ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::Stream Class Reference

Virtual base class for both ReadStream and WriteStream. More...

#include <stream.h>

Inheritance diagram for Common::Stream:

List of all members.

Public Member Functions

virtual ~Stream ()
virtual bool err () const
 Returns true if an I/O failure occurred.
virtual void clearErr ()
 Reset the I/O error status as returned by err().

Detailed Description

Virtual base class for both ReadStream and WriteStream.

Definition at line 37 of file stream.h.


Constructor & Destructor Documentation

virtual Common::Stream::~Stream (  )  [inline, virtual]

Definition at line 39 of file stream.h.


Member Function Documentation

virtual void Common::Stream::clearErr (  )  [inline, virtual]

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 are supposed to match those of ISO C clearerr().

Reimplemented in Common::IFFParser::IFFChunkNav, Common::MemoryReadStream, Common::MemoryWriteStream, Common::MemoryReadWriteStream, Common::OutSaveFile, Common::SubReadStream, Common::GZipReadStream, Common::GZipWriteStream, and Grim::PackFile.

Definition at line 58 of file stream.h.

virtual bool Common::Stream::err (  )  const [inline, virtual]

Returns true if an I/O failure occurred.

This flag is never cleared automatically. In order to clear it, client code has to call clearErr() explicitly.

Note:
The semantics of any implementation of this method are supposed to match those of ISO C ferror().

Reimplemented in Common::IFFParser::IFFChunkNav, Common::MemoryWriteStream, Common::OutSaveFile, Common::SubReadStream, Common::GZipReadStream, Common::GZipWriteStream, and Grim::PackFile.

Definition at line 49 of file stream.h.


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


Generated on Sat Sep 21 2019 05:03:26 for ResidualVM by doxygen 1.7.1
curved edge   curved edge