The DtEnvironmentList maintains a list of DtEnvironment records that can be looked up by the environment name.
More...
Static Protected Attributes |
| static const std::string | myFileName |
Detailed Description
The DtEnvironmentList maintains a list of DtEnvironment records that can be looked up by the environment name.
Member Typedef Documentation
Constructor & Destructor Documentation
| makVrv::DtEnvironmentList::DtEnvironmentList |
( |
DtDe & |
de | ) |
|
| virtual makVrv::DtEnvironmentList::~DtEnvironmentList |
( |
| ) |
|
|
virtual |
| makVrv::DtEnvironmentList::DtEnvironmentList |
( |
| ) |
|
|
protected |
Default constructor (not implemented)
Member Function Documentation
Put the current environment conditions into a list-record.
- Parameters
-
| [out] | record | is the list-record to be populated with data. |
To support writing element definitions in folders as multiple files not implemented for DtEnvironmentList.
To support writing element definitions in folders as multiple files not implemented for DtEnvironmentList.
Set (reset) the environment conditions from a list-record.
- Parameters
-
| [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.
- Parameters
-
| [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.
- Parameters
-
| [in] | names | is the list of names to order environment conditions. |
- Exceptions
-
| DtException | if the given list does not contain the same number and values of the current environment order. |
Add or replace an environment record.
- Parameters
-
| [in] | environment | is the environment-record to add. |
- Note
- The environment is saved under the name found in the record. If the environment name already exists, the corresponding entry is changed to the given data. If the environment name does not exist a new entry is added.
| void makVrv::DtEnvironmentList::removeEnvironment |
( |
const std::string & |
name | ) |
|
Remove an environment record entry.
- Parameters
-
| [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.
- Parameters
-
| [in] | oldName | is the name of the existing environment record. |
| [in] | newName | is the name the environment record should have. |
- Exceptions
-
Get the default environment record.
- Returns
- The default environment record.
- Exceptions
-
Set a default environment record.
- Parameters
-
| [in] | environment | is the environment-record to set. |
- Note
- The environment is saved under the name found in the record. If the environment name already exists, the corresponding entry is changed to the given data and saved as the default record. If the environment name does not exist a new entry is added and saved as the default record.
| const std::string& makVrv::DtEnvironmentList::getDefaultEnvironmentName |
( |
| ) |
const |
Get the name of the default environment record.
- Returns
- The name of the default environment record.
| void makVrv::DtEnvironmentList::setDefaultEnvironment |
( |
const std::string & |
name | ) |
|
Set environment record as default.
- Parameters
-
| [in] | name | is the name of the environment set as default. |
- Exceptions
-
- Note
- Locates the environment record by name and sets it as default.
| void makVrv::DtEnvironmentList::loadDefaults |
( |
bool |
loadOnlyFactorySettings = false | ) |
|
Load default settings.
- Parameters
-
| [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 | ) |
|
Accessors to the settings-backup.
| virtual void makVrv::DtEnvironmentList::saveEnvironmentList |
( |
| ) |
|
|
protectedvirtual |
Saves all the current environment records to file.
Member Data Documentation
| const std::string makVrv::DtEnvironmentList::myFileName |
|
staticprotected |
| DtDe& makVrv::DtEnvironmentList::myDe |
|
protected |
| std::string makVrv::DtEnvironmentList::myDefaultConditionName |
|
protected |
The documentation for this class was generated from the following file: