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 (string_view name) const
 Find the setting with given name. More...
 
BaseSettingfindSetting (string_view prefix, 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 19 of file SettingsManager.cc.

◆ ~SettingsManager()

openmsx::SettingsManager::~SettingsManager ( )

Definition at line 27 of file SettingsManager.cc.

Member Function Documentation

◆ findSetting() [1/2]

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

Find the setting with given name.

Returns
The requested setting or nullptr.

Definition at line 45 of file SettingsManager.cc.

References end().

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

◆ findSetting() [2/2]

BaseSetting * openmsx::SettingsManager::findSetting ( string_view  prefix,
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: