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

Manages all settings. More...

#include <SettingsManager.hh>

Public Member Functions

 SettingsManager (GlobalCommandController &commandController)
 
 SettingsManager (const SettingsManager &)=delete
 
 SettingsManager (SettingsManager &&)=delete
 
SettingsManageroperator= (const SettingsManager &)=delete
 
SettingsManageroperator= (SettingsManager &&)=delete
 
 ~SettingsManager ()
 
BaseSettingfindSetting (std::string_view name) const
 Find the setting with given name.
 
BaseSettingfindSetting (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
 

Detailed Description

Manages all settings.

Definition at line 20 of file SettingsManager.hh.

Constructor & Destructor Documentation

◆ SettingsManager() [1/3]

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

Definition at line 18 of file SettingsManager.cc.

◆ SettingsManager() [2/3]

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

◆ SettingsManager() [3/3]

openmsx::SettingsManager::SettingsManager ( SettingsManager &&  )
delete

◆ ~SettingsManager()

openmsx::SettingsManager::~SettingsManager ( )

Definition at line 26 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.

Definition at line 44 of file SettingsManager.cc.

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 SettingsManager.cc.

References findSetting(), and tmpStrCat().

◆ getAllSettings()

const auto & openmsx::SettingsManager::getAllSettings ( ) const
inline

Definition at line 41 of file SettingsManager.hh.

◆ loadSettings()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

SettingsManager & openmsx::SettingsManager::operator= ( 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: