![]() |
VR-Forces 5.0.1 Developer's Guide
|
This class will be able to store and restore backups for schemas.

Public Member Functions | |
| DtSchemaSettingsBackup () | |
| DtSchemaSettingsBackup (const DtSchemaSettingsBackup &) | |
| DtSchemaSettingsBackup (DtDe *de, DtSchemaManager *) | |
| virtual | ~DtSchemaSettingsBackup () |
| const makArchives::DtSchema & | restoredSchema () const |
Public Member Functions inherited from makVrv::DtSettingsBackup | |
| DtSettingsBackup () | |
| virtual | ~DtSettingsBackup () |
| virtual bool | createAndWriteToBackupFile (const std::ostringstream &str, const std::string &path) |
| virtual bool | createAndWriteToBackupFiles (const std::vector< std::ostringstream * > &str, const std::string &path, const std::vector< std::string > &fileNames) |
| const std::string & | backupFile () const |
| virtual bool | backupFileExists () const |
| virtual bool | backupDirExists () const |
| virtual bool | factoryFileExists () const |
| virtual bool | factoryDirExists () const |
| virtual void | backup () |
| virtual void | backupByDir () |
| virtual void | deleteBackup () |
| virtual void | restore (bool fromFactory=false) |
| virtual void | getRestorableNames (NameList &names) |
| virtual void | restore (bool fromFactory, bool selectedOnly) |
| virtual void | restoreSelected (const DtSettingsBackup *) |
| virtual void | writeDir (std::vector< std::ostringstream * > &outStreamVec, std::vector< std::string > &fileNames) |
| virtual void | readIncremental (boost::archive::xml_iarchive &ar) |
| void | setManagerDestroyed (bool b) |
| virtual void | addRestoreWhenRestored (DtSettingsBackup *, const RestoreFlags &f=RestoreAll) |
| const RestoreWhenRestored & | restoreWhenRestored () const |
| virtual void | cancelRestoreWhenRestored (DtSettingsBackup *, const RestoreFlags &f=RestoreAll) |
| virtual std::string | backupName () const |
| void | setBackupsPath (const std::string &s) |
| const std::string & | backupsPath () const |
| void | setFactoryFile (const std::string &s) |
| const std::string & | factoryFile () const |
| void | setFactoryDir (const std::string &dir) |
| const std::string & | factoryDir () const |
| void | setBackupDir (const std::string &dir) |
| const std::string & | backupDir () const |
Public Member Functions inherited from makVrv::DtBackupInterface | |
| DtBackupInterface () | |
| virtual | ~DtBackupInterface () |
Protected Member Functions | |
| virtual void | restore (const DtSettingsBackup *from) |
| virtual std::string | backupClassType () const |
| virtual void | saveSchema () |
| virtual DtSettingsBackup * | create () const |
| virtual void | write (boost::archive::xml_oarchive &ar) |
| virtual void | read (boost::archive::xml_iarchive &ar) |
Protected Member Functions inherited from makVrv::DtSettingsBackup | |
| virtual bool | restore (bool fromFactory, std::vector< DtSettingsBackup * > &hasBeenRestored, bool selectedOnly) |
Protected Attributes | |
| DtDe * | myDe |
| DtSchemaManager * | mySchemaManager |
| makArchives::DtSchema | myRestoredSchema |
Protected Attributes inherited from makVrv::DtSettingsBackup | |
| bool | myManagerDestroyed |
| RestoreWhenRestored | myRestoreWhenRestored |
| std::string | myBackupFile |
| std::string | myFactoryFile |
| std::string | myBackupsPath |
| std::string | myBackupDir |
| std::string | myFactoryDir |
Additional Inherited Members | |
Public Types inherited from makVrv::DtSettingsBackup | |
| enum | RestoreFlags { RestoreFromFactory = 0x00000001, RestoreFromLocal = 0x00000002, KeepRestoreFromLocal = 0x80000000, RestoreAll = RestoreFromFactory | RestoreFromLocal } |
| typedef std::map < DtSettingsBackup *, int > | RestoreWhenRestored |
Public Types inherited from makVrv::DtBackupInterface | |
| typedef std::vector< std::string > | NameList |
Public Attributes inherited from makVrv::DtSettingsBackup | |
| boost::signalslib::signal < void(const DtSettingsBackup *)> | signal_destructing |
| boost::signalslib::signal < void(const DtSettingsBackup *)> | signal_backupCleared |
| boost::signalslib::signal < void(const DtSettingsBackup *)> | signal_backedUp |
| boost::signalslib::signal < void(const DtSettingsBackup *)> | signal_restored |
Public Attributes inherited from makVrv::DtBackupInterface | |
| boost::signalslib::signal < void(DtBackupInterface *)> | signal_backupFileChanged |
| makVrv::DtSchemaSettingsBackup::DtSchemaSettingsBackup | ( | ) |
| makVrv::DtSchemaSettingsBackup::DtSchemaSettingsBackup | ( | const DtSchemaSettingsBackup & | ) |
| makVrv::DtSchemaSettingsBackup::DtSchemaSettingsBackup | ( | DtDe * | de, |
| DtSchemaManager * | |||
| ) |
|
virtual |
|
protectedvirtual |
Called with the object that needs to be restored from.
Implements makVrv::DtSettingsBackup.
|
protectedvirtual |
Override to return the class name of this object. Will be used as a key to look itself up in the backup manager.
Implements makVrv::DtSettingsBackup.
|
protectedvirtual |
Called from de tick, saves schema.
|
protectedvirtual |
Returns a new empty class of type. Will be called from restore() method to restore data into.
Implements makVrv::DtSettingsBackup.
|
protectedvirtual |
Override to write to given stream. Implementation need not be more than oa << *this.
Implements makVrv::DtSettingsBackup.
|
protectedvirtual |
Override to read from given stream. Implementation need not be more than ia >> *this.
Implements makVrv::DtSettingsBackup.
|
inline |
|
protected |
|
protected |
|
protected |