Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Common::SeekableReadStream Class Reference

#include <stream.h>

Inheritance diagram for Common::SeekableReadStream:

Common::ReadStream Common::Stream Common::InSaveFile Common::MemoryReadStream Common::MemoryReadStreamEndian

List of all members.


Detailed Description

Interface for a seekable & readable data stream.

Todo:
We really need better error handling here! Like seek should somehow indicate whether it failed.

Definition at line 293 of file stream.h.


Public Member Functions

virtual void clearIOFailed ()
virtual bool eos () const =0
virtual bool ioFailed () const
virtual uint32 pos () const =0
virtual uint32 read (void *dataPtr, uint32 dataSize)=0
byte readByte ()
virtual char * readLine (char *buf, size_t bufSize)
int8 readSByte ()
int16 readSint16BE ()
int16 readSint16LE ()
int32 readSint32BE ()
int32 readSint32LE ()
MemoryReadStreamreadStream (uint32 dataSize)
uint16 readUint16BE ()
uint16 readUint16LE ()
uint32 readUint32BE ()
uint32 readUint32LE ()
virtual void seek (int32 offset, int whence=SEEK_SET)=0
virtual uint32 size () const =0
void skip (uint32 offset)

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

Generated by  Doxygen 1.6.0   Back to index