ScummVM API documentation
Gob::SaveReader Class Reference

#include <savefile.h>

Inheritance diagram for Gob::SaveReader:
Gob::SaveContainer

Public Member Functions

 SaveReader (uint32 partCount, uint32 slot, const Common::String &fileName)
 
 SaveReader (uint32 partCount, uint32 slot, Common::SeekableReadStream &stream)
 
bool load ()
 
bool readPart (uint32 partN, SavePart *part) const
 
bool readPartHeader (uint32 partN, SaveHeader *header) const
 
- Public Member Functions inherited from Gob::SaveContainer
 SaveContainer (uint32 partCount, uint32 slot)
 
uint32 getSlot () const
 
uint32 getSize () const
 
bool hasAllParts () const
 
void clear ()
 
bool writePart (uint32 partN, const SavePart *part)
 
bool readPart (uint32 partN, SavePart *part) const
 
bool readPartHeader (uint32 partN, SaveHeader *header) const
 

Static Public Member Functions

static bool getInfo (Common::SeekableReadStream &stream, SavePartInfo &info)
 
static bool getInfo (const Common::String &fileName, SavePartInfo &info)
 
- Static Public Member Functions inherited from Gob::SaveContainer
static bool isSave (Common::SeekableReadStream &stream)
 

Protected Member Functions

Common::InSaveFileopenSave ()
 
- Protected Member Functions inherited from Gob::SaveContainer
uint32 calcSize () const
 
bool read (Common::ReadStream &stream)
 
bool write (Common::WriteStream &stream) const
 

Static Protected Member Functions

static Common::InSaveFileopenSave (const Common::String &fileName)
 
- Static Protected Member Functions inherited from Gob::SaveContainer
static Common::Array< PartInfo > * getPartsInfo (Common::SeekableReadStream &stream)
 

Protected Attributes

Common::String _fileName
 
Common::SeekableReadStream_stream
 
bool _loaded
 
- Protected Attributes inherited from Gob::SaveContainer
uint32 _partCount
 
uint32 _slot
 
SaveHeader _header
 
Common::Array< Part * > _parts
 

Additional Inherited Members

- Static Public Attributes inherited from Gob::SaveContainer
static const uint32 kVersion = 1
 
static const uint32 kID = MKTAG('C','O','N','T')
 
- Protected Types inherited from Gob::SaveContainer
typedef Common::Array< Part * >::iterator PartIterator
 
typedef Common::Array< Part * >::const_iterator PartConstIterator
 

Detailed Description

Reads a save.

Member Function Documentation

◆ getInfo() [1/2]

static bool Gob::SaveReader::getInfo ( Common::SeekableReadStream stream,
SavePartInfo info 
)
static

Find and read the save's info part.

◆ getInfo() [2/2]

static bool Gob::SaveReader::getInfo ( const Common::String fileName,
SavePartInfo info 
)
static

Find and read the save's info part.


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