VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtKeyMapSettingsBackup Class Reference

Backup for Keymap Settings.

Inheritance diagram for makVrv::DtKeyMapSettingsBackup:
Inheritance graph
[legend]

Public Member Functions

 DtKeyMapSettingsBackup (DtKeyMapManager &man, const std::string &keyMap)
 
virtual ~DtKeyMapSettingsBackup ()
 
virtual void restore (const DtSettingsBackup *from)
 
virtual std::string backupClassType () const
 
virtual std::string backupName () const
 
virtual DtSettingsBackupcreate () const
 
virtual void write (boost::archive::xml_oarchive &ar)
 
virtual void read (boost::archive::xml_iarchive &ar)
 
const makArchives::DtKeyMapRecordrestoredRecord () 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 RestoreWhenRestoredrestoreWhenRestored () const
 
virtual void cancelRestoreWhenRestored (DtSettingsBackup *, const RestoreFlags &f=RestoreAll)
 
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 Attributes

std::string myKeyMap
 
makArchives::DtKeyMapRecord myRestoredRecord
 
DtKeyMapManagermyKeyMapManager
 
- 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
 
- Protected Member Functions inherited from makVrv::DtSettingsBackup
virtual bool restore (bool fromFactory, std::vector< DtSettingsBackup * > &hasBeenRestored, bool selectedOnly)
 

Constructor & Destructor Documentation

makVrv::DtKeyMapSettingsBackup::DtKeyMapSettingsBackup ( DtKeyMapManager man,
const std::string &  keyMap 
)

CTOR.

virtual makVrv::DtKeyMapSettingsBackup::~DtKeyMapSettingsBackup ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtKeyMapSettingsBackup::restore ( const DtSettingsBackup from)
virtual

Restore key map from backup.

Implements makVrv::DtSettingsBackup.

virtual std::string makVrv::DtKeyMapSettingsBackup::backupClassType ( ) const
inlinevirtual

Returns the key map name.

Implements makVrv::DtSettingsBackup.

virtual std::string makVrv::DtKeyMapSettingsBackup::backupName ( ) const
inlinevirtual

Returns the key map name.

Reimplemented from makVrv::DtSettingsBackup.

virtual DtSettingsBackup* makVrv::DtKeyMapSettingsBackup::create ( ) const
virtual

Create the keymap backup.

Implements makVrv::DtSettingsBackup.

virtual void makVrv::DtKeyMapSettingsBackup::write ( boost::archive::xml_oarchive &  ar)
virtual

Write the key map backup.

Implements makVrv::DtSettingsBackup.

virtual void makVrv::DtKeyMapSettingsBackup::read ( boost::archive::xml_iarchive &  ar)
virtual

Read the keymap backup.

Implements makVrv::DtSettingsBackup.

const makArchives::DtKeyMapRecord& makVrv::DtKeyMapSettingsBackup::restoredRecord ( ) const
inline

Return the backup's restored record.

Member Data Documentation

std::string makVrv::DtKeyMapSettingsBackup::myKeyMap
protected
makArchives::DtKeyMapRecord makVrv::DtKeyMapSettingsBackup::myRestoredRecord
protected
DtKeyMapManager& makVrv::DtKeyMapSettingsBackup::myKeyMapManager
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)