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

#include <UserSettings.hh>

Classes

struct  Info
 

Public Types

using Settings = std::vector< Info >
 

Public Member Functions

 UserSettings (CommandController &commandController)
 
void addSetting (Info &&info)
 
void deleteSetting (Setting &setting)
 
SettingfindSetting (std::string_view name) const
 

Detailed Description

Definition at line 17 of file UserSettings.hh.

Member Typedef Documentation

◆ Settings

using openmsx::UserSettings::Settings = std::vector<Info>

Definition at line 24 of file UserSettings.hh.

Constructor & Destructor Documentation

◆ UserSettings()

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

Definition at line 24 of file UserSettings.cc.

Member Function Documentation

◆ addSetting()

void openmsx::UserSettings::addSetting ( Info &&  info)

Definition at line 29 of file UserSettings.cc.

References findSetting().

◆ deleteSetting()

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

Definition at line 35 of file UserSettings.cc.

References move_pop_back(), rfind_unguarded(), and setting.

◆ findSetting()

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

Definition at line 41 of file UserSettings.cc.

References end(), and ranges::find().

Referenced by addSetting().


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