Logo Search packages:      
Sourcecode: scummvm version File versions

Common::SaveFileManager Class Reference

#include <savefile.h>

Inheritance diagram for Common::SaveFileManager:

Common::NonCopyable DefaultSaveFileManager PSPSaveFileManager

List of all members.


Detailed Description

The SaveFileManager is serving as a factory for InSaveFile and OutSaveFile objects.

Engines and other code should use SaveFiles whenever they need to store data which they need to be able to retrieve again later on -- i.e. typically save states, but also configuration files and similar things.

While not declared as a singleton, it is effectively used as such, with OSystem::getSavefileManager returning a pointer to the single SaveFileManager instances to be used.

Definition at line 65 of file savefile.h.


Public Member Functions

virtual void clearError ()
virtual Error getError ()
virtual String getErrorDesc ()
virtual Common::StringList listSavefiles (const char *pattern)=0
virtual InSaveFileopenForLoading (const char *name)=0
virtual OutSaveFileopenForSaving (const char *name)=0
virtual String popErrorDesc ()
virtual bool removeSavefile (const char *name)=0
virtual bool renameSavefile (const char *oldName, const char *newName)

Protected Member Functions

virtual void setError (Error error, const String &errorDesc)

Protected Attributes

Error _error
String _errorDesc

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

Generated by  Doxygen 1.6.0   Back to index