openMSX
ReadOnlySetting.hh
Go to the documentation of this file.
1#ifndef READONLYSETTING_HH
2#define READONLYSETTING_HH
3
4#include "Setting.hh"
5
6namespace openmsx {
7
8class ReadOnlySetting final : public Setting
9{
10public:
11 ReadOnlySetting(CommandController& commandController,
12 std::string_view name, static_string_view description,
13 const TclObject& initialValue);
14
15 void setReadOnlyValue(const TclObject& value);
16
17 [[nodiscard]] std::string_view getTypeString() const override;
18
19private:
20 TclObject roValue;
21};
22
23} // namespace openmsx
24
25#endif
std::string_view getTypeString() const override
Returns a string describing the setting type (integer, string, ..) Could be used in a GUI to pick an ...
void setReadOnlyValue(const TclObject &value)
static_string_view
This file implemented 3 utility functions:
Definition Autofire.cc:11