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

#include <EnumSetting.hh>

Inheritance diagram for openmsx::EnumSettingBase:
Inheritance graph
[legend]

Classes

struct  MapEntry
 

Public Types

using Map = std::vector< MapEntry >
 

Protected Member Functions

 EnumSettingBase (Map &&m)
 
int fromStringBase (std::string_view str) const
 
std::string_view toStringBase (int value) const
 
auto getPossibleValues () const
 
void additionalInfoBase (TclObject &result) const
 
void tabCompletionBase (std::vector< std::string > &tokens) const
 

Detailed Description

Definition at line 15 of file EnumSetting.hh.

Member Typedef Documentation

◆ Map

Definition at line 26 of file EnumSetting.hh.

Constructor & Destructor Documentation

◆ EnumSettingBase()

openmsx::EnumSettingBase::EnumSettingBase ( Map &&  m)
explicitprotected

Definition at line 14 of file EnumSetting.cc.

References openmsx::EnumSettingBase::MapEntry::name, and ranges::sort().

Member Function Documentation

◆ additionalInfoBase()

void openmsx::EnumSettingBase::additionalInfoBase ( TclObject result) const
protected

◆ fromStringBase()

int openmsx::EnumSettingBase::fromStringBase ( std::string_view  str) const
protected

◆ getPossibleValues()

auto openmsx::EnumSettingBase::getPossibleValues ( ) const
inlineprotected

Definition at line 34 of file EnumSetting.hh.

References view::transform().

Referenced by additionalInfoBase(), and tabCompletionBase().

◆ tabCompletionBase()

void openmsx::EnumSettingBase::tabCompletionBase ( std::vector< std::string > &  tokens) const
protected

◆ toStringBase()

std::string_view openmsx::EnumSettingBase::toStringBase ( int  value) const
protected

Definition at line 30 of file EnumSetting.cc.

References UNREACHABLE.


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