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 SettingsConfig &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 )

◆ SettingsManager() [2/2]

openmsx::SettingsManager::SettingsManager ( GlobalCommandController commandController)

Definition at line 18 of file

◆ ~SettingsManager()

openmsx::SettingsManager::~SettingsManager ( )

Definition at line 26 of file

Member Function Documentation

◆ findSetting() [1/2]

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

Find the setting with given name.

The requested setting or nullptr.

Definition at line 44 of file

References end(), and tmpStrCat().

Referenced by findSetting().

◆ findSetting() [2/2]

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

Definition at line 63 of file

References ranges::copy(), findSetting(), utf8::unchecked::size(), and VLA.

◆ loadSettings()

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

◆ operator=()

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

◆ 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: