![]() |
VR-Forces Developer's Guide
|
Base class for shared settings managers. Extends the functionality provided by the DtCommonBaseSettingsManager, by implementing the initializeBackup, setFromRecord, and getRecord methods. Since creating backups and setting/getting the settings' state with a record works the same for all shared settings managers, new shared settings managers should use DtBaseSharedSettingsManager as its base class to make use of the common code. The SettingsType template parameter must be a DtSharedSettings object with methods settingsBackup() (both const and non-const versions) and backup(), returning DtSettingsBackup* and void respectively. The settings object must also implement a void setFromRecord( const RecType& ) and a void getRecord( RecType& ) const method as well.

Public Member Functions | |
| DtBaseSharedSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| virtual | ~DtBaseSharedSettingsManager () |
Setting Persistence Methods | |
| virtual void | initializeBackup () |
| virtual void | setFromRecord (const RecordType &record) |
| virtual void | getRecord (RecordType &record) const |
| virtual bool | getOverriddenFactoryRecord (RecordType &record) const |
Public Member Functions inherited from makVrv::DtCommonBaseSettingsManager< RecordType > | |
| DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| virtual | ~DtCommonBaseSettingsManager () |
| virtual void | autoSaveIfNecessary () |
| virtual void | setAutoSave (bool doit) |
| virtual bool | autoSave () const |
| virtual void | setUseDefaultSettingsRecord (bool useit) |
| virtual bool | useDefaultSettingsRecord () const |
| virtual DtDeSettings * | settings () |
| virtual const DtDeSettings * | settings () const |
| virtual DtSettingsBackup * | settingsBackup () |
| virtual const DtSettingsBackup * | settingsBackup () const |
| virtual void | loadDefaults () |
| virtual void | saveDefaultSettings () |
| virtual void | loadDefaultSettings (bool loadOnlyFactorySettings) |
| virtual void | importSettings (const std::string &filePath) |
| virtual void | exportSettings (const std::string &filePath) const |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| virtual | ~DtVirtualBaseClass () |
Protected Types | |
| typedef DtSharedRecordSettingsBackup < SettingsType, RecordType > | SharedRecordBackupType |
Additional Inherited Members | |
Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< RecordType > | |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| std::string | myExtension |
| std::string | myDisplayName |
| bool | myUseDefaultSettingsRecordFlag |
| bool | myAutoSaveFlag |
| DtSettingsBackup * | mySettingsBackup |
| DtDe & | myDe |
|
protected |
|
inline |
CTOR.
|
inlinevirtual |
Virtual DTOR.
|
inlinevirtual |
Creates a backup of the settings' current state.
Implements makVrv::DtCommonBaseSettingsManager< RecordType >.
|
inlinevirtual |
Set the current settings' state from the given record.
Implements makVrv::DtCommonBaseSettingsManager< RecordType >.
Reimplemented in makVrv::DtDisplayUnitsSettingsManager.
|
inlinevirtual |
Store the current settings' state in the given record.
Implements makVrv::DtCommonBaseSettingsManager< RecordType >.
|
inlinevirtual |
Get overrides to the factory record, if any. If there are overrides, this function returns true. This is an internal utility function used by VR-Vantage engineers to update factory defaults. As a result, this function returns false in releases but can be overriden by toolkit users if desired; however, generally toolkit users can and should use DtDeInitializer::addDefaultSettingsRecord(...) instead.
Implements makVrv::DtCommonBaseSettingsManager< RecordType >.