openMSX
ReadOnlySetting.hh
Go to the documentation of this file.
1 #ifndef READONLYSETTING_HH
2 #define READONLYSETTING_HH
3 
4 #include "Setting.hh"
5 
6 namespace openmsx {
7 
8 class ReadOnlySetting final : public Setting
9 {
10 public:
11  ReadOnlySetting(CommandController& commandController,
12  std::string_view name, std::string_view description,
13  const TclObject& initialValue);
14 
15  void setReadOnlyValue(const TclObject& value);
16 
17  std::string_view getTypeString() const override;
18 
19 private:
20  TclObject roValue;
21 };
22 
23 } // namespace openmsx
24 
25 #endif
openmsx::ReadOnlySetting::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: ReadOnlySetting.cc:28
openmsx::ReadOnlySetting::ReadOnlySetting
ReadOnlySetting(CommandController &commandController, std::string_view name, std::string_view description, const TclObject &initialValue)
Definition: ReadOnlySetting.cc:6
openmsx::CommandController
Definition: CommandController.hh:18
Setting.hh
openmsx::ReadOnlySetting::setReadOnlyValue
void setReadOnlyValue(const TclObject &value)
Definition: ReadOnlySetting.cc:22
openmsx::Setting
Definition: Setting.hh:120
openmsx::ReadOnlySetting
Definition: ReadOnlySetting.hh:9
openmsx::TclObject
Definition: TclObject.hh:22
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5