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

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 66 of file savefile.h.


Public Member Functions

virtual void clearError ()
virtual Error getError ()
virtual String getErrorDesc ()
virtual StringArray listSavefiles (const String &pattern)=0
virtual InSaveFileopenForLoading (const String &name)=0
virtual OutSaveFileopenForSaving (const String &name)=0
virtual String popErrorDesc ()
virtual bool removeSavefile (const String &name)=0
virtual bool renameSavefile (const String &oldName, const String &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