Mantid
|
Functions | |
template<typename T > | |
T | getSetting (std::string const &settingGroup, std::string const &settingName) |
Loads an individual setting from disk. More... | |
template<typename T > | |
std::map< std::string, T > | getSettingsAsMap (std::string const &settingGroup) |
Loads a map of settings with the same type. More... | |
template<typename T > | |
void | setSetting (std::string const &settingGroup, std::string const &settingName, T const &value) |
Sets the value of a specified setting. More... | |
T MantidQt::MantidWidgets::QSettingsHelper::getSetting | ( | std::string const & | settingGroup, |
std::string const & | settingName | ||
) |
Loads an individual setting from disk.
settingGroup | The name of the setting group |
settingName | The name of the setting |
Definition at line 29 of file QSettingsHelper.h.
std::map< std::string, T > MantidQt::MantidWidgets::QSettingsHelper::getSettingsAsMap | ( | std::string const & | settingGroup | ) |
Loads a map of settings with the same type.
This comparison is required as QVariant types are not properly encoded in ini files
settingGroup | The name of the setting group |
Definition at line 45 of file QSettingsHelper.h.
void MantidQt::MantidWidgets::QSettingsHelper::setSetting | ( | std::string const & | settingGroup, |
std::string const & | settingName, | ||
T const & | value | ||
) |
Sets the value of a specified setting.
settingGroup | The name of the setting group |
settingName | The name of the setting |
value | The value of the named setting |
Definition at line 75 of file QSettingsHelper.h.
References value.