![]() |
VR-Forces 4.7 Class Documentation
|
The common template version of the backup interface. More...

Public Member Functions | |
| DtManagerBackup (Manager &manager) | |
| CTOR. | |
| virtual | ~DtManagerBackup () |
| DTOR. | |
| virtual bool | backupFileExists () const |
| Check for a the existence of the backup state? | |
| virtual bool | factoryFileExists () const |
| Check for a the existence of the factory shipped state? | |
| virtual bool | backupDirExists () const |
| Check for a the existence of the backup state? | |
| virtual bool | factoryDirExists () const |
| Check for a the existence of the factory shipped state? | |
| virtual void | backup () |
| Save the current state. This should overwrite the existing state. | |
| virtual void | deleteBackup () |
| Delete the current backup state. | |
| virtual void | restore (bool fromFactory=false) |
| Restore the state, either from the backup (default) or from the factory. | |
| void | getRestorableNames (NameList &names) |
| Get the names of states restore will affect. | |
Public Member Functions inherited from makVrv::DtBackupInterface | |
| DtBackupInterface () | |
| Default CTOR. | |
| virtual | ~DtBackupInterface () |
| Default DTOR. | |
Public Attributes | |
| boost::signal< void()> | signal_settingsRestored |
Public Attributes inherited from makVrv::DtBackupInterface | |
| boost::signal< void(DtBackupInterface *)> | signal_backupFileChanged |
| This signal should be emitted when the backup file is created, written to, or destroyed. | |
Protected Attributes | |
| Manager & | myManager |
Additional Inherited Members | |
Public Types inherited from makVrv::DtBackupInterface | |
| typedef std::vector< std::string > | NameList |
The common template version of the backup interface.
The manager must implement this interface: virtual void exportSettings(const std::string& filename); virtual void importSettings(const std::string& filename); virtual DtDeSettings* settings();
|
inline |
CTOR.
|
inlinevirtual |
DTOR.
|
inlinevirtual |
Check for a the existence of the backup state?
Implements makVrv::DtBackupInterface.
References makVrv::DtVrvFilesystem::exists(), and makVrv::DtManagerBackup< Manager >::myManager.
|
inlinevirtual |
Check for a the existence of the factory shipped state?
Implements makVrv::DtBackupInterface.
References makVrv::DtVrvFilesystem::exists(), and makVrv::DtManagerBackup< Manager >::myManager.
|
inlinevirtual |
Check for a the existence of the backup state?
Implements makVrv::DtBackupInterface.
References makVrv::DtVrvFilesystem::exists(), and makVrv::DtManagerBackup< Manager >::myManager.
|
inlinevirtual |
Check for a the existence of the factory shipped state?
Implements makVrv::DtBackupInterface.
References makVrv::DtVrvFilesystem::exists(), and makVrv::DtManagerBackup< Manager >::myManager.
|
inlinevirtual |
Save the current state. This should overwrite the existing state.
Implements makVrv::DtBackupInterface.
References makVrv::DtManagerBackup< Manager >::myManager.
|
inlinevirtual |
Delete the current backup state.
Implements makVrv::DtBackupInterface.
References makVrv::DtVrvFilesystem::deleteFile(), and makVrv::DtManagerBackup< Manager >::myManager.
|
inlinevirtual |
Restore the state, either from the backup (default) or from the factory.
Implements makVrv::DtBackupInterface.
References makVrv::DtManagerBackup< Manager >::myManager, and makVrv::DtManagerBackup< Manager >::signal_settingsRestored.
|
inlinevirtual |
Get the names of states restore will affect.
Implements makVrv::DtBackupInterface.
References makVrv::DtManagerBackup< Manager >::myManager.
| boost::signal<void ()> makVrv::DtManagerBackup< Manager >::signal_settingsRestored |
Referenced by makVrv::DtManagerBackup< Manager >::restore().
|
protected |
Referenced by makVrv::DtManagerBackup< Manager >::backup(), makVrv::DtManagerBackup< Manager >::backupDirExists(), makVrv::DtManagerBackup< Manager >::backupFileExists(), makVrv::DtManagerBackup< Manager >::deleteBackup(), makVrv::DtManagerBackup< Manager >::factoryDirExists(), makVrv::DtManagerBackup< Manager >::factoryFileExists(), makVrv::DtManagerBackup< Manager >::getRestorableNames(), and makVrv::DtManagerBackup< Manager >::restore().