openMSX
StringSetting.cc
Go to the documentation of this file.
1 #include "StringSetting.hh"
2 
3 namespace openmsx {
4 
6  std::string_view name_, std::string_view description_,
7  std::string_view initialValue, SaveSetting save_)
8  : Setting(commandController_, name_, description_,
9  TclObject(initialValue), save_)
10 {
11  init();
12 }
13 
14 std::string_view StringSetting::getTypeString() const
15 {
16  return "string";
17 }
18 
19 } // namespace openmsx
openmsx::CommandController
Definition: CommandController.hh:18
openmsx::StringSetting::StringSetting
StringSetting(CommandController &commandController, std::string_view name, std::string_view description, std::string_view initialValue, SaveSetting save=SAVE)
Definition: StringSetting.cc:5
openmsx::Setting
Definition: Setting.hh:120
openmsx::StringSetting::getTypeString
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
Definition: StringSetting.cc:14
StringSetting.hh
openmsx::Setting::init
void init()
Definition: Setting.cc:54
openmsx::Setting::SaveSetting
SaveSetting
Definition: Setting.hh:125
openmsx::TclObject
Definition: TclObject.hh:22
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5