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
7namespace openmsx {
8
10{
11public:
12 explicit FirmwareSwitch(const DeviceConfig& config);
14
15 [[nodiscard]] bool getStatus() const { return setting.getBoolean(); }
16
17private:
18 const DeviceConfig config;
19 BooleanSetting setting;
20};
21
22} // namespace openmsx
23
24#endif
bool getBoolean() const noexcept
This file implemented 3 utility functions:
Definition Autofire.cc:11