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 "noncopyable.hh"
6 #include <memory>
7 
8 namespace openmsx {
9 
10 class BooleanSetting;
11 
12 class FirmwareSwitch : private noncopyable
13 {
14 public:
15  explicit FirmwareSwitch(const DeviceConfig& config);
17 
18  bool getStatus() const;
19 
20 private:
21  const DeviceConfig config;
22  const std::unique_ptr<BooleanSetting> setting;
23 };
24 
25 } // namespace openmsx
26 
27 #endif
FirmwareSwitch(const DeviceConfig &config)
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:7
Based on boost::noncopyable, see boost documentation: http://www.boost.org/libs/utility.
Definition: noncopyable.hh:12