![]() |
VR-Forces 4.10 Class Documentation
|
Example Settings Manager. More...

Public Member Functions | |
| virtual | ~DtDistributedEnvironmentSettingsManager () |
| DTOR. More... | |
Setters/getters for settings | |
| virtual void | setAllowSimEnvironmentEffectMessages (bool val) |
| Sets whether to listen to sim environment effect messages or not. More... | |
| virtual bool | allowSimEnvironmentEffectMessages () const |
| Gets whether listening to sim environment effect messages or not. More... | |
Setting persistence methods | |
| virtual void | setFromRecord (const makArchives::DtDistributedEnvironmentSettingsRecord &rec) |
| Use the settings from the given settings record. More... | |
| virtual void | getRecord (makArchives::DtDistributedEnvironmentSettingsRecord &rec) const |
| Populate the given record with the current settings. More... | |
Public Member Functions inherited from makVrv::DtBaseSettingsManager< makArchives::DtDistributedEnvironmentSettingsRecord > | |
| DtBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR. More... | |
| virtual | ~DtBaseSettingsManager () |
| Virtual DTOR. More... | |
| virtual void | initializeBackup () |
| Creates a backup of the settings' current state. More... | |
Public Member Functions inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtDistributedEnvironmentSettingsRecord > | |
| DtCommonBaseSettingsManager (DtDe &de, const std::string &name, const std::string &displayName, const std::string &ext) | |
| CTOR The name, displayName, and extension parameters are used for creating the settings object (DtDeSettings) and backup, and for constructing the filename when readin/writing the records to disk. More... | |
| virtual | ~DtCommonBaseSettingsManager () |
| Virtual DTOR. More... | |
| virtual void | autoSaveIfNecessary () |
| Saves the current settings as defaults if autosave is enabled. More... | |
| virtual void | setAutoSave (bool doit) |
| Sets whether autosave is enabled for the settings manager. More... | |
| virtual bool | autoSave () const |
| Gets whether autosave is enabled for the settings manager. More... | |
| virtual void | setUseDefaultSettingsRecord (bool useit) |
| Sets whether setting initialization should check for a default record. More... | |
| virtual bool | useDefaultSettingsRecord () const |
| Gets whether setting initialization should check for a default record. More... | |
| virtual DtDeSettings * | settings () |
| Accessor for the manager's DtDeSettings object. More... | |
| virtual const DtDeSettings * | settings () const |
| Accessor for the manager's DtDeSettings object (const). More... | |
| virtual DtSettingsBackup * | settingsBackup () |
| Accessor for the manager's settings backup. More... | |
| virtual const DtSettingsBackup * | settingsBackup () const |
| Accessor for the manager's settings backup (const). More... | |
| virtual void | loadDefaults () |
| Initializes the settings and creates a backup. More... | |
| virtual void | saveDefaultSettings () |
| Saves the current settings' state as the default (on disk). More... | |
| virtual void | loadDefaultSettings (bool loadOnlyFactorySettings) |
| Loads the default settings from disk. More... | |
| virtual void | importSettings (const std::string &filePath) |
| Load the settings' state from the given file. More... | |
| virtual void | exportSettings (const std::string &filePath) const |
| Save the current settings' state to the given file. More... | |
| virtual void | getSplitRecord (std::vector< makArchives::DtDistributedEnvironmentSettingsRecord > &rec, std::vector< std::string > &fileNames) |
| For directory support, split the main record into different sub-records and give them each a file name. More... | |
| virtual void | addRecords (makArchives::DtDistributedEnvironmentSettingsRecord &rec, makArchives::DtDistributedEnvironmentSettingsRecord &combinedRec) |
| For directory support, when reading in a directory, add the records from each file to the combined record. More... | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. More... | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. More... | |
Static Public Member Functions | |
| static DtDistributedEnvironmentSettingsManager & | instance (DtDe &de) |
| Get an instance of the settings manager. More... | |
Public Attributes | |
| boost::signalslib::signal < void(bool)> | signal_allowSimMessagesSet |
| Boost signals for changed settings. More... | |
Protected Member Functions | |
| DtDistributedEnvironmentSettingsManager (DtDe &) | |
| Protected CTOR ( use instance(..) ) More... | |
Protected Attributes | |
| bool | myAllowSimEnvironmentEffectMessages |
Protected Attributes inherited from makVrv::DtCommonBaseSettingsManager< makArchives::DtDistributedEnvironmentSettingsRecord > | |
| DtSignalConnectionManager | myConnections |
| std::string | myName |
| std::string | myExtension |
| std::string | myDisplayName |
| bool | myUseDefaultSettingsRecordFlag |
| bool | myAutoSaveFlag |
| DtSettingsBackup * | mySettingsBackup |
| DtDe & | myDe |
Friends | |
| template<typename ManagerClass > | |
| ManagerClass & | defaultManagerInstanceFunction (DtDe &, bool) |
| Befriend the manager instance functions for instance retreival/creation. More... | |
| template<typename ManagerClass > | |
| void | defaultManagerRegisterInstanceFunction (DtDe &, ManagerClass *) |
| Befriend the manager instance functions for instance retreival/creation. More... | |
Additional Inherited Members | |
Protected Types inherited from makVrv::DtBaseSettingsManager< makArchives::DtDistributedEnvironmentSettingsRecord > | |
| typedef DtRecordSettingsBackup < DtBaseSettingsManager < makArchives::DtDistributedEnvironmentSettingsRecord > , makArchives::DtDistributedEnvironmentSettingsRecord > | RecordBackupType |
Example Settings Manager.
|
virtual |
DTOR.
|
protected |
Protected CTOR ( use instance(..) )
|
static |
Get an instance of the settings manager.
|
virtual |
Sets whether to listen to sim environment effect messages or not.
|
virtual |
Gets whether listening to sim environment effect messages or not.
Reimplemented in makVrf::DtVrfDistributedEnvironmentSettingsManager.
|
virtual |
Use the settings from the given settings record.
Implements makVrv::DtBaseSettingsManager< makArchives::DtDistributedEnvironmentSettingsRecord >.
|
virtual |
Populate the given record with the current settings.
Implements makVrv::DtBaseSettingsManager< makArchives::DtDistributedEnvironmentSettingsRecord >.
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
Manager requirements: 1) Static instance function 2) Protected DtSignalConnectionManager named myConnections. 3) Member functioned called loadDefaults which takes no arguments. and loads the default settings of the manager or factory from disk. 4) define defaultManagerInstanceFunction as friend. 5) define defaultManagerRegisterInstanceFunction as friend (see below). 5) Protected Constructor which only takes a DtDe reference.
Then simply in the implementation of instance call defaultManagerInstanceFunction with the de object and return the return value.
|
friend |
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retreival/creation.
Befriend the manager instance functions for instance retrieval/creation.
| boost::signalslib::signal<void (bool)> makVrv::DtDistributedEnvironmentSettingsManager::signal_allowSimMessagesSet |
Boost signals for changed settings.
|
protected |