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

#include <SettingsConfig.hh>

Public Member Functions

 SettingsConfig (GlobalCommandController &globalCommandController, HotKey &hotKey)
 
 ~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 18 of file SettingsConfig.hh.

Constructor & Destructor Documentation

◆ SettingsConfig()

openmsx::SettingsConfig::SettingsConfig ( GlobalCommandController globalCommandController,
HotKey hotKey 
)

Definition at line 64 of file SettingsConfig.cc.

◆ ~SettingsConfig()

openmsx::SettingsConfig::~SettingsConfig ( )

Member Function Documentation

◆ getSettingsManager()

SettingsManager& openmsx::SettingsConfig::getSettingsManager ( )
inline

◆ getValueForSetting()

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

Definition at line 138 of file SettingsConfig.cc.

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 = {})

Definition at line 153 of file SettingsConfig.cc.

References openmsx::filename, and openmsx::File::TRUNCATE.

Referenced by ~SettingsConfig().

◆ setSaveFilename()

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

Definition at line 133 of file SettingsConfig.cc.

References gl::context, and openmsx::filename.

◆ setSaveSettings()

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

Definition at line 27 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: