OXYGENHUB
◆ main openmsx / src / settings / ReadOnlySetting.hh
509 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
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, 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
19
private:
20
	TclObject roValue;
21
};
22
23
} // namespace openmsx
24
25
#endif