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

#include <EnumSetting.hh>

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

Protected Types

using BaseMap = std::vector< std::pair< std::string, int > >
 

Protected Member Functions

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

Detailed Description

Definition at line 14 of file EnumSetting.hh.

Member Typedef Documentation

◆ BaseMap

using openmsx::EnumSettingBase::BaseMap = std::vector<std::pair<std::string, int> >
protected

Definition at line 18 of file EnumSetting.hh.

Constructor & Destructor Documentation

◆ EnumSettingBase()

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

Definition at line 16 of file EnumSetting.cc.

References 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()

std::vector< std::string_view > openmsx::EnumSettingBase::getPossibleValues ( ) const
protected

Definition at line 42 of file EnumSetting.cc.

References view::keys().

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 32 of file EnumSetting.cc.

References UNREACHABLE.

Referenced by openmsx::EnumSetting< bool >::getString().


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