![]() |
VR-Forces 4.5 Class Documentation
|
Settings class for reading and writing settings to/from files. More...

Public Member Functions | |
| virtual | ~DtDeSettings () |
| DTOR. | |
| const std::string & | name () const |
| Get the settings name. | |
| const std::string & | extension () const |
| Get the extension for this settings type. | |
| template<typename RecordType > | |
| bool | readDefaultRecord (RecordType &r) |
| Read a record from the default settings. | |
| template<typename RecordType > | |
| bool | readBackupRecord (RecordType &r) |
| Read a record from the backup settings. | |
| template<typename RecordType > | |
| bool | readFactoryDefaultRecord (RecordType &r) |
| template<typename RecordType > | |
| bool | writeDefaultRecord (const RecordType &r) |
| Write a record as the default settings. | |
| template<typename RecordType > | |
| bool | writeBackupRecord (const RecordType &r) |
| Write a record as the default settings. | |
| template<typename RecordType > | |
| bool | readRecordFrom (RecordType &r, const std::string &importFileName) |
| Read a record from a specific location. | |
| template<typename RecordType > | |
| bool | readRecordFromBinary (RecordType &r, const std::string &importFileName) |
| Read a record from a specific location. | |
| template<typename RecordType > | |
| bool | writeRecordTo (const RecordType &r, const std::string &exportFileName) const |
| Write a record to a specific location. | |
| template<typename RecordType > | |
| bool | writeRecordToBinary (const RecordType &r, const std::string &exportFileName) const |
| Write a record to a specific location. | |
| void | setAutoSave (bool b) |
| Save the record after each change in the GUI (as opposed to hitting the export button to save) | |
| bool | autoSave () const |
| template<typename RecordType > | |
| bool | readDefaultRecords (std::vector< RecordType > &recVec) |
| Read a records from a default directory. | |
| template<typename RecordType > | |
| bool | readRecordsFromDir (std::vector< RecordType > &recVec, const std::string &importDirName) |
| Read a records from a directory. | |
Default settings file existence & path accessors. | |
| bool | defaultFileExists () const |
| virtual std::string | defaultFilePath () const |
| bool | defaultBinaryFileExists () const |
| virtual std::string | defaultBinaryFilePath () const |
Factory settings file existence & path accessors. | |
| bool | factoryFileExists () const |
| virtual std::string | factoryFilePath () const |
Backup settings file existence & path accessors. | |
| bool | backupFileExists () const |
| virtual std::string | backupFilePath () const |
Default settings directory existence & path accessors. | |
| bool | defaultDirExists () const |
| virtual std::string | defaultDirPath () const |
Factory settings directory existence & path accessors. | |
| bool | factoryDirExists () const |
| virtual std::string | factoryDirPath () const |
Backup settings directory existence & path accessors. | |
| bool | backupDirExists () const |
| virtual std::string | backupDirPath () const |
User definition settings directory existence & path accessors. | |
| bool | userEntityElementDefinitionDirExists () const |
| virtual std::string | userEntityElementDefinitionDirPath () const |
Static Public Member Functions | |
| static std::string | binaryFileExtension (void) |
Protected Member Functions | |
| DtDeSettings (DtDe &de, const std::string &name, const std::string &ext) | |
Protected Attributes | |
| DtDe & | myDe |
| std::string | myName |
| std::string | myExtension |
| bool | myAutoSave |
Static Protected Attributes | |
| static const std::string | myBinaryFileExtension |
Friends | |
| class | DtDeSettingsManager |
Settings class for reading and writing settings to/from files.
|
virtual |
DTOR.
|
protected |
| const std::string& makVrv::DtDeSettings::name | ( | ) | const |
Get the settings name.
| const std::string& makVrv::DtDeSettings::extension | ( | ) | const |
Get the extension for this settings type.
| bool makVrv::DtDeSettings::readDefaultRecord | ( | RecordType & | r | ) |
Read a record from the default settings.
Referenced by makVrv::DtCommonBaseSettingsManager< makArchives::DtEntitySettingsRecord >::loadDefaultSettings().
| bool makVrv::DtDeSettings::readBackupRecord | ( | RecordType & | r | ) |
Read a record from the backup settings.
| bool makVrv::DtDeSettings::readFactoryDefaultRecord | ( | RecordType & | r | ) |
| bool makVrv::DtDeSettings::writeDefaultRecord | ( | const RecordType & | r | ) |
Write a record as the default settings.
Referenced by makVrv::DtCommonBaseSettingsManager< makArchives::DtEntitySettingsRecord >::saveDefaultSettings().
| bool makVrv::DtDeSettings::writeBackupRecord | ( | const RecordType & | r | ) |
Write a record as the default settings.
| bool makVrv::DtDeSettings::readRecordFrom | ( | RecordType & | r, |
| const std::string & | importFileName | ||
| ) |
Read a record from a specific location.
| bool makVrv::DtDeSettings::readRecordFromBinary | ( | RecordType & | r, |
| const std::string & | importFileName | ||
| ) |
Read a record from a specific location.
| bool makVrv::DtDeSettings::writeRecordTo | ( | const RecordType & | r, |
| const std::string & | exportFileName | ||
| ) | const |
Write a record to a specific location.
Referenced by makVrv::DtCommonBaseSettingsManager< makArchives::DtEntitySettingsRecord >::exportSettings().
| bool makVrv::DtDeSettings::writeRecordToBinary | ( | const RecordType & | r, |
| const std::string & | exportFileName | ||
| ) | const |
Write a record to a specific location.
|
inline |
Save the record after each change in the GUI (as opposed to hitting the export button to save)
|
inline |
| bool makVrv::DtDeSettings::defaultFileExists | ( | ) | const |
|
virtual |
Reimplemented in makVrv::DtElementDefinitionSettings.
| bool makVrv::DtDeSettings::defaultBinaryFileExists | ( | ) | const |
|
virtual |
Reimplemented in makVrv::DtElementDefinitionSettings.
| bool makVrv::DtDeSettings::factoryFileExists | ( | ) | const |
|
virtual |
Reimplemented in makVrv::DtElementDefinitionSettings.
Referenced by makVrv::DtRecordSettingsBackupInterface::DtRecordSettingsBackupInterface().
| bool makVrv::DtDeSettings::backupFileExists | ( | ) | const |
|
virtual |
Reimplemented in makVrv::DtElementDefinitionSettings.
|
static |
| bool makVrv::DtDeSettings::defaultDirExists | ( | ) | const |
|
virtual |
Reimplemented in makVrv::DtElementDefinitionSettings.
| bool makVrv::DtDeSettings::factoryDirExists | ( | ) | const |
|
virtual |
Reimplemented in makVrv::DtElementDefinitionSettings.
| bool makVrv::DtDeSettings::backupDirExists | ( | ) | const |
|
virtual |
Reimplemented in makVrv::DtElementDefinitionSettings.
| bool makVrv::DtDeSettings::userEntityElementDefinitionDirExists | ( | ) | const |
|
virtual |
Reimplemented in makVrv::DtElementDefinitionSettings.
| bool makVrv::DtDeSettings::readDefaultRecords | ( | std::vector< RecordType > & | recVec | ) |
Read a records from a default directory.
| bool makVrv::DtDeSettings::readRecordsFromDir | ( | std::vector< RecordType > & | recVec, |
| const std::string & | importDirName | ||
| ) |
Read a records from a directory.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |