openMSX
WD2793BasedFDC.hh
Go to the documentation of this file.
1 #ifndef WD2793BASEDFDC_HH
2 #define WD2793BASEDFDC_HH
3 
4 #include "MSXFDC.hh"
5 #include <memory>
6 
7 namespace openmsx {
8 
9 class DriveMultiplexer;
10 class WD2793;
11 
12 class WD2793BasedFDC : public MSXFDC
13 {
14 public:
15  void reset(EmuTime::param time) override;
16 
17  template<typename Archive>
18  void serialize(Archive& ar, unsigned version);
19 
20 protected:
21  explicit WD2793BasedFDC(const DeviceConfig& config);
23 
24  const std::unique_ptr<DriveMultiplexer> multiplexer;
25  const std::unique_ptr<WD2793> controller;
26 };
27 
28 REGISTER_BASE_NAME_HELPER(WD2793BasedFDC, "WD2793BasedFDC");
29 
30 } // namespace openmsx
31 
32 #endif
void reset(EmuTime::param time) override
This method is called on reset.
const std::unique_ptr< DriveMultiplexer > multiplexer
void serialize(Archive &ar, unsigned version)
const std::unique_ptr< WD2793 > controller
REGISTER_BASE_NAME_HELPER(MSXFDC,"FDC")
WD2793BasedFDC(const DeviceConfig &config)