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

List of all members.


Detailed Description

The SaveFileManager is serving as a factor 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 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 the single SaveFileManager instances to be used.

Definition at line 78 of file savefile.h.


Public Member Functions

virtual void clearError ()
virtual SFMError getError ()
virtual String getErrorDesc ()
virtual Common::StringList listSavefiles (const char *regex)=0
virtual InSaveFileopenForLoading (const char *filename)=0
virtual OutSaveFileopenForSaving (const char *filename)=0
virtual String popErrorDesc ()
virtual bool removeSavefile (const char *filename)=0
virtual bool renameSavefile (const char *oldFilename, const char *newFilename)

Protected Member Functions

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

Protected Attributes

SFMError _error
String _errorDesc

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

Generated by  Doxygen 1.6.0   Back to index