![]() |
VR-Forces Developer's Guide
|
The backup interface, is used by components to control backups of a state.

Public Types | |
| typedef std::vector< std::string > | NameList |
Public Member Functions | |
| DtBackupInterface () | |
| virtual | ~DtBackupInterface () |
| virtual bool | backupFileExists () const =0 |
| virtual bool | factoryFileExists () const =0 |
| virtual bool | backupDirExists () const =0 |
| virtual bool | factoryDirExists () const =0 |
| virtual void | backup ()=0 |
| virtual void | deleteBackup ()=0 |
| virtual void | restore (bool fromFactory=false)=0 |
| virtual void | getRestorableNames (NameList &names)=0 |
Public Attributes | |
| boost::signalslib::signal < void(DtBackupInterface *)> | signal_backupFileChanged |
| typedef std::vector<std::string> makVrv::DtBackupInterface::NameList |
| makVrv::DtBackupInterface::DtBackupInterface | ( | ) |
Default CTOR.
|
virtual |
Default DTOR.
|
pure virtual |
Check for a the existence of the backup state?
Implemented in makVrv::DtManagerBackup< Manager >, and makVrv::DtSettingsBackup.
|
pure virtual |
Check for a the existence of the factory shipped state?
Implemented in makVrv::DtManagerBackup< Manager >, and makVrv::DtSettingsBackup.
|
pure virtual |
Check for a the existence of the backup state?
Implemented in makVrv::DtManagerBackup< Manager >, and makVrv::DtSettingsBackup.
|
pure virtual |
Check for a the existence of the factory shipped state?
Implemented in makVrv::DtManagerBackup< Manager >, and makVrv::DtSettingsBackup.
|
pure virtual |
Save the current state. This should overwrite the existing state.
Implemented in makVrv::DtManagerBackup< Manager >, makVrv::DtSettingsBackup, and makVrv::DtRecordSettingsBackupInterface.
|
pure virtual |
Delete the current backup state.
Implemented in makVrv::DtManagerBackup< Manager >, and makVrv::DtSettingsBackup.
|
pure virtual |
Restore the state, either from the backup (default) or from the factory.
Implemented in makVrv::DtManagerBackup< Manager >, and makVrv::DtSettingsBackup.
|
pure virtual |
Get the names of states restore will affect.
Implemented in makVrv::DtManagerBackup< Manager >, and makVrv::DtSettingsBackup.
| boost::signalslib::signal<void (DtBackupInterface*)> makVrv::DtBackupInterface::signal_backupFileChanged |
This signal should be emitted when the backup file is created, written to, or destroyed.