openMSX
|
#include <EnumSetting.hh>
Public Types | |
using | Map = std::vector< std::pair< std::string, T > > |
Public Member Functions | |
EnumSetting (CommandController &commandController, std::string_view name, static_string_view description, T initialValue, Map &&map_, SaveSetting save=SAVE) | |
std::string_view | getTypeString () const override |
void | additionalInfo (TclObject &result) const override |
void | tabCompletion (std::vector< std::string > &tokens) const override |
T | getEnum () const noexcept |
void | setEnum (T e) |
std::string_view | getString () const |
bool | getEnum () const noexcept |
Definition at line 32 of file EnumSetting.hh.
using openmsx::EnumSetting< T >::Map = std::vector<std::pair<std::string, T> > |
Definition at line 35 of file EnumSetting.hh.
openmsx::EnumSetting< T >::EnumSetting | ( | CommandController & | commandController, |
std::string_view | name, | ||
static_string_view | description, | ||
T | initialValue, | ||
Map && | map_, | ||
SaveSetting | save = SAVE |
||
) |
Definition at line 58 of file EnumSetting.hh.
References openmsx::TclObject::getString().
|
override |
Definition at line 80 of file EnumSetting.hh.
|
noexcept |
Definition at line 92 of file EnumSetting.hh.
References openmsx::EnumSetting< T >::getString().
Referenced by openmsx::DiskFactory::createDisk(), openmsx::ResampledSoundDevice::createResampler(), openmsx::RenderSettings::getAccuracy(), openmsx::KeyboardSettings::getCodeKanaHostKey(), openmsx::RenderSettings::getDisplayDeform(), openmsx::KeyboardSettings::getKpEnterMode(), openmsx::KeyboardSettings::getMappingMode(), openmsx::ChakkariCopy::getReadCacheLine(), openmsx::RenderSettings::getRenderer(), openmsx::RenderSettings::getScaleAlgorithm(), openmsx::ChakkariCopy::getWriteCacheLine(), and openmsx::ChakkariCopy::writeIO().
|
inlinenoexcept |
Definition at line 96 of file EnumSetting.hh.
std::string_view openmsx::EnumSetting< T >::getString |
Definition at line 109 of file EnumSetting.hh.
Referenced by openmsx::EnumSetting< T >::getEnum(), openmsx::EnumSetting< bool >::getEnum(), and openmsx::CommandLineParser::parse().
|
override |
Definition at line 74 of file EnumSetting.hh.
void openmsx::EnumSetting< T >::setEnum | ( | T | e | ) |
Definition at line 103 of file EnumSetting.hh.
|
override |
Definition at line 86 of file EnumSetting.hh.