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

#include <UserSettings.hh>

Public Types

using Settings = std::vector< std::unique_ptr< Setting > >
 

Public Member Functions

 UserSettings (CommandController &commandController)
 
void addSetting (std::unique_ptr< Setting > setting)
 
void deleteSetting (Setting &setting)
 
SettingfindSetting (string_view name) const
 
const SettingsgetSettings () const
 

Detailed Description

Definition at line 13 of file UserSettings.hh.

Member Typedef Documentation

◆ Settings

using openmsx::UserSettings::Settings = std::vector<std::unique_ptr<Setting> >

Definition at line 16 of file UserSettings.hh.

Constructor & Destructor Documentation

◆ UserSettings()

openmsx::UserSettings::UserSettings ( CommandController commandController)
explicit

Definition at line 25 of file UserSettings.cc.

Member Function Documentation

◆ addSetting()

void openmsx::UserSettings::addSetting ( std::unique_ptr< Setting setting)

Definition at line 30 of file UserSettings.cc.

References findSetting().

◆ deleteSetting()

void openmsx::UserSettings::deleteSetting ( Setting setting)

Definition at line 36 of file UserSettings.cc.

References move_pop_back(), and rfind_if_unguarded().

◆ findSetting()

Setting * openmsx::UserSettings::findSetting ( string_view  name) const

Definition at line 42 of file UserSettings.cc.

References openmsx::IDEDeviceFactory::create(), end(), and ranges::find_if().

Referenced by addSetting().

◆ getSettings()

const Settings& openmsx::UserSettings::getSettings ( ) const
inline

Definition at line 23 of file UserSettings.hh.

References openmsx::IDEDeviceFactory::create().


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