openMSX
Classes | Public Member Functions | List of all members
openmsx::SettingsManager Class Reference

Manages all settings. More...

#include <SettingsManager.hh>

Public Member Functions

 SettingsManager (const SettingsManager &)=delete
 
SettingsManageroperator= (const SettingsManager &)=delete
 
 SettingsManager (GlobalCommandController &commandController)
 
 ~SettingsManager ()
 
BaseSettingfindSetting (std::string_view name) const
 Find the setting with given name. More...
 
BaseSettingfindSetting (std::string_view prefix, std::string_view baseName) const
 
void loadSettings (const XMLElement &config)
 
void registerSetting (BaseSetting &setting)
 
void unregisterSetting (BaseSetting &setting)
 

Detailed Description

Manages all settings.

Definition at line 18 of file SettingsManager.hh.

Constructor & Destructor Documentation

◆ SettingsManager() [1/2]

openmsx::SettingsManager::SettingsManager ( const SettingsManager )
delete

◆ SettingsManager() [2/2]

openmsx::SettingsManager::SettingsManager ( GlobalCommandController commandController)
explicit

Definition at line 21 of file SettingsManager.cc.

◆ ~SettingsManager()

openmsx::SettingsManager::~SettingsManager ( )

Definition at line 29 of file SettingsManager.cc.

Member Function Documentation

◆ findSetting() [1/2]

BaseSetting* openmsx::SettingsManager::findSetting ( std::string_view  name) const

Find the setting with given name.

Returns
The requested setting or nullptr.

Referenced by openmsx::ProxySetting::ProxySetting(), and unregisterSetting().

◆ findSetting() [2/2]

BaseSetting* openmsx::SettingsManager::findSetting ( std::string_view  prefix,
std::string_view  baseName 
) const

◆ loadSettings()

void openmsx::SettingsManager::loadSettings ( const XMLElement config)

◆ operator=()

SettingsManager& openmsx::SettingsManager::operator= ( const SettingsManager )
delete

◆ registerSetting()

void openmsx::SettingsManager::registerSetting ( BaseSetting setting)

◆ unregisterSetting()

void openmsx::SettingsManager::unregisterSetting ( BaseSetting setting)

The documentation for this class was generated from the following files: