![]() |
VR-Forces 4.6.1 Class Documentation
|
The DtEnvironmentList maintains a list of DtEnvironment records that can be looked up by the environment name. More...
Public Member Functions | |
| DtEnvironmentList (DtDe &de) | |
| CTOR. | |
| virtual | ~DtEnvironmentList () |
| DTOR. | |
| void | getRecord (makArchives::DtEnvironmentListRecord &record) |
| virtual void | getSplitRecord (std::vector< makArchives::DtEnvironmentListRecord > &rec, std::vector< std::string > &fileNames) |
| To support writing element definitions in folders as multiple files not implemented for DtEnvironmentList. | |
| virtual void | addRecords (makArchives::DtEnvironmentListRecord &recs, makArchives::DtEnvironmentListRecord &combinedRec) |
| To support writing element definitions in folders as multiple files not implemented for DtEnvironmentList. | |
| void | setFromRecord (const makArchives::DtEnvironmentListRecord &record) |
| Set (reset) the environment conditions from a list-record. | |
| void | getEnvironmentNames (std::vector< std::string > &names) const |
| void | setEnvironmentNames (const std::vector< std::string > &names) |
| Set the list of names of all the environment entries. | |
| const makArchives::DtEnvironmentRecord & | getEnvironment (const std::string &name) const |
| Get an environment record by name. | |
| makArchives::DtEnvironmentRecord & | getEnvironment (const std::string &name) |
| Get an environment record by name. | |
| void | addOrReplaceEnvironment (const makArchives::DtEnvironmentRecord &environment) |
| Add or replace an environment record. | |
| void | removeEnvironment (const std::string &name) |
| Remove an environment record entry. | |
| void | renameEnvironment (const std::string &oldName, const std::string &newName) |
| Rename an environment record entry. | |
| const makArchives::DtEnvironmentRecord & | getDefaultEnvironment () const |
| void | setDefaultEnvironment (const makArchives::DtEnvironmentRecord &environment) |
| Set a default environment record. | |
| const std::string & | getDefaultEnvironmentName () const |
| Get the name of the default environment record. | |
| void | setDefaultEnvironment (const std::string &name) |
| Set environment record as default. | |
| void | loadDefaults (bool loadOnlyFactorySettings=false) |
| void | restore () |
| Restores to backup environment from startup default. | |
| void | saveAsDefaults () |
| Save the current settings as the default settings. | |
| void | exportSettings (const std::string &filename) |
| Import / export the list of named conditions (.enlx file) | |
| void | importSettings (const std::string &filename) |
| const DtSettingsBackup * | settingsBackup () const |
| DtSettingsBackup * | settingsBackup () |
Protected Types | |
| typedef std::list < makArchives::DtEnvironmentRecord > | SettingsList |
Protected Member Functions | |
| DtEnvironmentList () | |
| Default constructor (not implemented) | |
| virtual void | saveEnvironmentList () |
| Saves all the current environment records to file. | |
Protected Attributes | |
| DtDe & | myDe |
| DtRecordSettingsBackupInterface * | mySettingsBackup |
| SettingsList | mySettingsList |
| std::string | myDefaultConditionName |
Static Protected Attributes | |
| static const std::string | myFileName |
The DtEnvironmentList maintains a list of DtEnvironment records that can be looked up by the environment name.
|
protected |
| makVrv::DtEnvironmentList::DtEnvironmentList | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
protected |
Default constructor (not implemented)
| void makVrv::DtEnvironmentList::getRecord | ( | makArchives::DtEnvironmentListRecord & | record | ) |
Put the current environment conditions into a list-record.
| [out] | record | is the list-record to be populated with data. |
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented for DtEnvironmentList.
|
inlinevirtual |
To support writing element definitions in folders as multiple files not implemented for DtEnvironmentList.
| void makVrv::DtEnvironmentList::setFromRecord | ( | const makArchives::DtEnvironmentListRecord & | record | ) |
Set (reset) the environment conditions from a list-record.
| [in] | record | is the list-record to read the data from. |
| void makVrv::DtEnvironmentList::getEnvironmentNames | ( | std::vector< std::string > & | names | ) | const |
Get a list of names of all the environment entries.
| [out] | names | is a list to be populated with key-names. |
| void makVrv::DtEnvironmentList::setEnvironmentNames | ( | const std::vector< std::string > & | names | ) |
Set the list of names of all the environment entries.
| [in] | names | is the list of names to order environment conditions. |
| DtException | if the given list does not contain the same number and values of the current environment order. |
| const makArchives::DtEnvironmentRecord& makVrv::DtEnvironmentList::getEnvironment | ( | const std::string & | name | ) | const |
Get an environment record by name.
| [in] | name | is the name of the environment to return. |
| DtException | if record is not found. |
Referenced by makVrf::DtDisabledEnvironment::setEnvironment().
| makArchives::DtEnvironmentRecord& makVrv::DtEnvironmentList::getEnvironment | ( | const std::string & | name | ) |
Get an environment record by name.
| [in] | name | is the name of the environment to return. |
| DtException | if record is not found. |
| void makVrv::DtEnvironmentList::addOrReplaceEnvironment | ( | const makArchives::DtEnvironmentRecord & | environment | ) |
Add or replace an environment record.
| [in] | environment | is the environment-record to add. |
| void makVrv::DtEnvironmentList::removeEnvironment | ( | const std::string & | name | ) |
Remove an environment record entry.
| [in] | name | is the name of the environment to remove. |
| void makVrv::DtEnvironmentList::renameEnvironment | ( | const std::string & | oldName, |
| const std::string & | newName | ||
| ) |
Rename an environment record entry.
| [in] | oldName | is the name of the existing environment record. |
| [in] | newName | is the name the environment record should have. |
| DtException | if record is not found. |
| const makArchives::DtEnvironmentRecord& makVrv::DtEnvironmentList::getDefaultEnvironment | ( | ) | const |
Get the default environment record.
| DtException | if default is not found. |
| void makVrv::DtEnvironmentList::setDefaultEnvironment | ( | const makArchives::DtEnvironmentRecord & | environment | ) |
Set a default environment record.
| [in] | environment | is the environment-record to set. |
| const std::string& makVrv::DtEnvironmentList::getDefaultEnvironmentName | ( | ) | const |
Get the name of the default environment record.
| void makVrv::DtEnvironmentList::setDefaultEnvironment | ( | const std::string & | name | ) |
Set environment record as default.
| [in] | name | is the name of the environment set as default. |
| DtException | if not found. |
| void makVrv::DtEnvironmentList::loadDefaults | ( | bool | loadOnlyFactorySettings = false | ) |
Load default settings.
| [in] | loadOnlyFactorySettings | flag to load factory settings. |
| void makVrv::DtEnvironmentList::restore | ( | ) |
Restores to backup environment from startup default.
| void makVrv::DtEnvironmentList::saveAsDefaults | ( | ) |
Save the current settings as the default settings.
| void makVrv::DtEnvironmentList::exportSettings | ( | const std::string & | filename | ) |
Import / export the list of named conditions (.enlx file)
| void makVrv::DtEnvironmentList::importSettings | ( | const std::string & | filename | ) |
| const DtSettingsBackup* makVrv::DtEnvironmentList::settingsBackup | ( | ) | const |
Accessors to the settings-backup.
| DtSettingsBackup* makVrv::DtEnvironmentList::settingsBackup | ( | ) |
|
protectedvirtual |
Saves all the current environment records to file.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |