openMSX
|
Manages all settings. More...
#include <SettingsManager.hh>
Public Member Functions | |
SettingsManager (GlobalCommandController &commandController) | |
SettingsManager (const SettingsManager &)=delete | |
SettingsManager (SettingsManager &&)=delete | |
SettingsManager & | operator= (const SettingsManager &)=delete |
SettingsManager & | operator= (SettingsManager &&)=delete |
~SettingsManager () | |
BaseSetting * | findSetting (std::string_view name) const |
Find the setting with given name. | |
BaseSetting * | findSetting (std::string_view prefix, std::string_view baseName) const |
void | loadSettings (const SettingsConfig &config) const |
void | registerSetting (BaseSetting &setting) |
void | unregisterSetting (BaseSetting &setting) |
const auto & | getAllSettings () const |
Manages all settings.
Definition at line 20 of file SettingsManager.hh.
|
explicit |
Definition at line 18 of file SettingsManager.cc.
|
delete |
|
delete |
openmsx::SettingsManager::~SettingsManager | ( | ) |
Definition at line 26 of file SettingsManager.cc.
BaseSetting * openmsx::SettingsManager::findSetting | ( | std::string_view | name | ) | const |
Find the setting with given name.
Definition at line 44 of file SettingsManager.cc.
References end(), and tmpStrCat().
Referenced by findSetting().
BaseSetting * openmsx::SettingsManager::findSetting | ( | std::string_view | prefix, |
std::string_view | baseName | ||
) | const |
Definition at line 63 of file SettingsManager.cc.
References findSetting(), and tmpStrCat().
|
inline |
Definition at line 41 of file SettingsManager.hh.
void openmsx::SettingsManager::loadSettings | ( | const SettingsConfig & | config | ) | const |
Definition at line 94 of file SettingsManager.cc.
References openmsx::SettingsConfig::getValueForSetting().
Referenced by openmsx::SettingsConfig::loadSetting().
|
delete |
|
delete |
void openmsx::SettingsManager::registerSetting | ( | BaseSetting & | setting | ) |
Definition at line 31 of file SettingsManager.cc.
References setting.
Referenced by openmsx::GlobalCommandController::registerProxySetting(), openmsx::GlobalCommandController::registerSetting(), and openmsx::MSXCommandController::registerSetting().
void openmsx::SettingsManager::unregisterSetting | ( | BaseSetting & | setting | ) |
Definition at line 37 of file SettingsManager.cc.
References setting.
Referenced by openmsx::GlobalCommandController::unregisterProxySetting(), openmsx::GlobalCommandController::unregisterSetting(), and openmsx::MSXCommandController::unregisterSetting().