openMSX
settings
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,
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
Setting.hh
openmsx::CommandController
Definition
CommandController.hh:19
openmsx::ReadOnlySetting
Definition
ReadOnlySetting.hh:9
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::setReadOnlyValue
void setReadOnlyValue(const TclObject &value)
Definition
ReadOnlySetting.cc:22
openmsx::Setting
Definition
Setting.hh:118
openmsx::TclObject
Definition
TclObject.hh:29
static_string_view
static_string_view
Definition
static_string_view.hh:28
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Sat Dec 21 2024 14:13:52 for openMSX by
1.9.8