#include <savefile.h>
Public Member Functions | |
SaveWriter (uint32 partCount, uint32 slot) | |
SaveWriter (uint32 partCount, uint32 slot, const Common::String &fileName) | |
bool | writePart (uint32 partN, const SavePart *part) |
bool | save (Common::WriteStream &stream) |
bool | deleteFile () |
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 |
Protected Member Functions | |
bool | save () |
bool | canSave () const |
Common::OutSaveFile * | openSave () |
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::OutSaveFile * | openSave (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 |
Protected Attributes inherited from Gob::SaveContainer | |
uint32 | _partCount |
uint32 | _slot |
SaveHeader | _header |
Common::Array< Part * > | _parts |
Additional Inherited Members | |
Static Public Member Functions inherited from Gob::SaveContainer | |
static bool | isSave (Common::SeekableReadStream &stream) |
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 |
Writes a save.
|
protected |
Is everything ready for saving?