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

Wintermute::BasePersistenceManager Class Reference

#include <base_persistence_manager.h>

Collaboration diagram for Wintermute::BasePersistenceManager:

List of all members.

Public Member Functions

bool saveFile (const Common::String &filename)
uint32 getDWORD ()
void putDWORD (uint32 val)
char * getString ()
Common::String getStringObj ()
void putString (const char *val)
float getFloat ()
void putFloat (float val)
double getDouble ()
void putDouble (double val)
void cleanup ()
void getSaveStateDesc (int slot, SaveStateDescriptor &desc)
void deleteSaveSlot (int slot)
uint32 getMaxUsedSlot ()
bool getSaveExists (int slot)
bool initLoad (const Common::String &filename)
bool initSave (const Common::String &desc)
bool getBytes (byte *buffer, uint32 size)
bool putBytes (byte *buffer, uint32 size)
bool getIsSaving ()
TimeDate getSavedTimestamp ()
bool transferPtr (const char *name, void *val)
bool transferSint32 (const char *name, int32 *val)
bool transferUint32 (const char *name, uint32 *val)
bool transferFloat (const char *name, float *val)
bool transferDouble (const char *name, double *val)
bool transferBool (const char *name, bool *val)
bool transferByte (const char *name, byte *val)
bool transferRect32 (const char *name, Rect32 *val)
bool transferPoint32 (const char *name, Point32 *val)
bool transferConstChar (const char *name, const char **val)
bool transferCharPtr (const char *name, char **val)
bool transferString (const char *name, Common::String *val)
bool transferVector2 (const char *name, Vector2 *val)
 BasePersistenceManager (const Common::String &savePrefix="", bool deleteSingleton=false)
virtual ~BasePersistenceManager ()
bool checkVersion (byte verMajor, byte verMinor, byte verBuild)
Common::String getFilenameForSlot (int slot) const

Public Attributes

char * _savedDescription
Common::String _savePrefix
Common::String _savedName
uint32 _offset
uint32 _richBufferSize
uint32 _thumbnailDataSize
uint32 _scummVMThumbSize

Private Member Functions

bool readHeader (const Common::String &filename)
TimeDate getTimeDate ()
bool putTimeDate (const TimeDate &t)

Private Attributes

bool _deleteSingleton
TimeDate _savedTimestamp
uint32 _savedPlayTime
byte _savedVerMajor
byte _savedVerMinor
byte _savedVerBuild
byte _savedExtMajor
byte _savedExtMinor
bool _saving

Detailed Description

Definition at line 56 of file base_persistence_manager.h.

Constructor & Destructor Documentation

Wintermute::BasePersistenceManager::BasePersistenceManager ( const Common::String savePrefix = "",
bool  deleteSingleton = false 

Definition at line 64 of file base_persistence_manager.cpp.

Wintermute::BasePersistenceManager::~BasePersistenceManager (  )  [virtual]

Definition at line 110 of file base_persistence_manager.cpp.

Member Function Documentation

bool Wintermute::BasePersistenceManager::checkVersion ( byte  verMajor,
byte  verMinor,
byte  verBuild 

Definition at line 929 of file base_persistence_manager.cpp.

void Wintermute::BasePersistenceManager::cleanup (  ) 

Definition at line 118 of file base_persistence_manager.cpp.

void Wintermute::BasePersistenceManager::deleteSaveSlot ( int  slot  ) 

Definition at line 194 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::getBytes ( byte buffer,
uint32  size 

Definition at line 449 of file base_persistence_manager.cpp.

double Wintermute::BasePersistenceManager::getDouble (  ) 

Definition at line 577 of file base_persistence_manager.cpp.

uint32 Wintermute::BasePersistenceManager::getDWORD (  ) 

Definition at line 464 of file base_persistence_manager.cpp.

Common::String Wintermute::BasePersistenceManager::getFilenameForSlot ( int  slot  )  const

Definition at line 149 of file base_persistence_manager.cpp.

float Wintermute::BasePersistenceManager::getFloat (  ) 

Definition at line 555 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::getIsSaving (  )  [inline]

Definition at line 82 of file base_persistence_manager.h.

uint32 Wintermute::BasePersistenceManager::getMaxUsedSlot (  ) 

Definition at line 199 of file base_persistence_manager.cpp.

TimeDate Wintermute::BasePersistenceManager::getSavedTimestamp (  )  [inline]

Definition at line 83 of file base_persistence_manager.h.

bool Wintermute::BasePersistenceManager::getSaveExists ( int  slot  ) 

Definition at line 212 of file base_persistence_manager.cpp.

void Wintermute::BasePersistenceManager::getSaveStateDesc ( int  slot,
SaveStateDescriptor desc 

Definition at line 154 of file base_persistence_manager.cpp.

char * Wintermute::BasePersistenceManager::getString (  ) 

Definition at line 488 of file base_persistence_manager.cpp.

Common::String Wintermute::BasePersistenceManager::getStringObj (  ) 

Definition at line 483 of file base_persistence_manager.cpp.

TimeDate Wintermute::BasePersistenceManager::getTimeDate (  )  [private]

Definition at line 535 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::initLoad ( const Common::String filename  ) 

Definition at line 380 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::initSave ( const Common::String desc  ) 

Definition at line 221 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::putBytes ( byte buffer,
uint32  size 

Definition at line 440 of file base_persistence_manager.cpp.

void Wintermute::BasePersistenceManager::putDouble ( double  val  ) 

Definition at line 569 of file base_persistence_manager.cpp.

void Wintermute::BasePersistenceManager::putDWORD ( uint32  val  ) 

Definition at line 458 of file base_persistence_manager.cpp.

void Wintermute::BasePersistenceManager::putFloat ( float  val  ) 

Definition at line 547 of file base_persistence_manager.cpp.

void Wintermute::BasePersistenceManager::putString ( const char *  val  ) 

Definition at line 471 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::putTimeDate ( const TimeDate t  )  [private]

Definition at line 520 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::readHeader ( const Common::String filename  )  [private]

Definition at line 317 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::saveFile ( const Common::String filename  ) 

Definition at line 422 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferBool ( const char *  name,
bool *  val 

Definition at line 593 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferByte ( const char *  name,
byte val 

Definition at line 744 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferCharPtr ( const char *  name,
char **  val 

Definition at line 688 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferConstChar ( const char *  name,
const char **  val 

Definition at line 705 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferDouble ( const char *  name,
double *  val 

Definition at line 669 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferFloat ( const char *  name,
float *  val 

Definition at line 650 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferPoint32 ( const char *  name,
Point32 val 

Definition at line 788 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferPtr ( const char *  name,
void *  val 

Definition at line 907 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferRect32 ( const char *  name,
Rect32 val 

Definition at line 763 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferSint32 ( const char *  name,
int32 val 

Definition at line 612 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferString ( const char *  name,
Common::String val 

Definition at line 722 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferUint32 ( const char *  name,
uint32 val 

Definition at line 631 of file base_persistence_manager.cpp.

bool Wintermute::BasePersistenceManager::transferVector2 ( const char *  name,
Vector2 val 

Definition at line 809 of file base_persistence_manager.cpp.

Member Data Documentation

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

Generated on Sat Sep 19 2020 05:06:27 for ResidualVM by doxygen 1.7.1
curved edge   curved edge