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

#include <SettingsConfig.hh>

Public Member Functions

 SettingsConfig (GlobalCommandController &globalCommandController, HotKey &hotKey, Shortcuts &shortcuts)
 ~SettingsConfig ()
void loadSetting (const FileContext &context, std::string_view filename)
void saveSetting (std::string filename={})
void setSaveSettings (bool save)
void setSaveFilename (const FileContext &context, std::string_view filename)
SettingsManagergetSettingsManager ()
const std::string * getValueForSetting (std::string_view setting) const
void setValueForSetting (std::string_view setting, std::string_view value)
void removeValueForSetting (std::string_view setting)

Detailed Description

Definition at line 21 of file SettingsConfig.hh.

Constructor & Destructor Documentation

◆ SettingsConfig()

openmsx::SettingsConfig::SettingsConfig ( GlobalCommandController globalCommandController,
HotKey hotKey,
Shortcuts shortcuts 

Definition at line 71 of file

◆ ~SettingsConfig()

openmsx::SettingsConfig::~SettingsConfig ( )

Member Function Documentation

◆ getSettingsManager()

SettingsManager & openmsx::SettingsConfig::getSettingsManager ( )

◆ getValueForSetting()

const std::string * openmsx::SettingsConfig::getValueForSetting ( std::string_view  setting) const

Definition at line 160 of file

References lookup(), and setting.

Referenced by openmsx::SettingsManager::loadSettings().

◆ loadSetting()

void openmsx::SettingsConfig::loadSetting ( const FileContext context,
std::string_view  filename 

◆ removeValueForSetting()

void openmsx::SettingsConfig::removeValueForSetting ( std::string_view  setting)

◆ saveSetting()

void openmsx::SettingsConfig::saveSetting ( std::string  filename = {})

◆ setSaveFilename()

void openmsx::SettingsConfig::setSaveFilename ( const FileContext context,
std::string_view  filename 

Definition at line 155 of file

◆ setSaveSettings()

void openmsx::SettingsConfig::setSaveSettings ( bool  save)

Definition at line 30 of file SettingsConfig.hh.

Referenced by openmsx::GlobalSettings::~GlobalSettings().

◆ setValueForSetting()

void openmsx::SettingsConfig::setValueForSetting ( std::string_view  setting,
std::string_view  value 

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