openMSX
FirmwareSwitch.hh
Go to the documentation of this file.
1
#ifndef FRONTSWITCH_HH
2
#define FRONTSWITCH_HH
3
4
#include "
DeviceConfig.hh
"
5
#include "
BooleanSetting.hh
"
6
7
namespace
openmsx
{
8
9
class
FirmwareSwitch
10
{
11
public
:
12
explicit
FirmwareSwitch
(
const
DeviceConfig
& config);
13
~FirmwareSwitch
();
14
15
[[nodiscard]]
bool
getStatus
()
const
{
return
setting.
getBoolean
(); }
16
17
private
:
18
const
DeviceConfig
config;
19
BooleanSetting
setting;
20
};
21
22
}
// namespace openmsx
23
24
#endif
BooleanSetting.hh
DeviceConfig.hh
openmsx::BooleanSetting
Definition
BooleanSetting.hh:9
openmsx::BooleanSetting::getBoolean
bool getBoolean() const noexcept
Definition
BooleanSetting.hh:17
openmsx::DeviceConfig
Definition
DeviceConfig.hh:21
openmsx::FirmwareSwitch
Definition
FirmwareSwitch.hh:10
openmsx::FirmwareSwitch::getStatus
bool getStatus() const
Definition
FirmwareSwitch.hh:15
openmsx::FirmwareSwitch::~FirmwareSwitch
~FirmwareSwitch()
Definition
FirmwareSwitch.cc:33
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Thu Dec 19 2024 23:13:46 for openMSX by
1.9.8