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

Common::File Class Reference

#include <file.h>

Inheritance diagram for Common::File:

Common::SeekableReadStream Common::NonCopyable Common::ReadStream Common::Stream

List of all members.


Detailed Description

TODO: vital to document this core class properly!!! For both users and implementors

Definition at line 42 of file file.h.


Public Member Functions

void clearErr ()
void clearIOFailed ()
virtual void close ()
bool eos () const
bool err () const
const char * getName () const
virtual bool ioFailed ()
bool ioFailed () const
bool isOpen () const
virtual bool open (SeekableReadStream *stream, const Common::String &name)
virtual bool open (const FSNode &node)
virtual bool open (const String &filename, Archive &archive)
virtual bool open (const String &filename)
int32 pos () const
uint32 read (void *dataPtr, uint32 dataSize)
byte readByte ()
virtual String readLine ()
virtual char * readLine_NEW (char *s, size_t bufSize)
int8 readSByte ()
int16 readSint16BE ()
int16 readSint16LE ()
int32 readSint32BE ()
int32 readSint32LE ()
MemoryReadStreamreadStream (uint32 dataSize)
uint16 readUint16BE ()
uint16 readUint16LE ()
uint32 readUint32BE ()
uint32 readUint32LE ()
bool seek (int32 offs, int whence=SEEK_SET)
int32 size () const
virtual bool skip (uint32 offset)

Static Public Member Functions

static void addDefaultDirectory (const FSNode &directory)
static void addDefaultDirectory (const String &directory)
static bool exists (const String &filename)

Protected Attributes

SeekableReadStream_handle
String _name

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

Generated by  Doxygen 1.6.0   Back to index