openMSX
DiskFactory.hh
Go to the documentation of this file.
1 #ifndef DISKFACTORY_HH
2 #define DISKFACTORY_HH
3 
4 #include "DirAsDSK.hh"
5 #include "EnumSetting.hh"
6 #include <string>
7 
8 namespace openmsx {
9 
10 class Reactor;
11 class DiskChanger;
12 class Disk;
13 
15 {
16 public:
17  explicit DiskFactory(Reactor& reactor);
18  std::unique_ptr<Disk> createDisk(
19  const std::string& diskImage, DiskChanger& diskChanger);
20 
21 private:
22  Reactor& reactor;
23  EnumSetting<DirAsDSK::SyncMode> syncDirAsDSKSetting;
24  EnumSetting<DirAsDSK::BootSectorType> bootSectorSetting;
25 };
26 
27 } // namespace openmsx
28 
29 #endif // DISKFACTORY_HH
openmsx::EnumSetting< DirAsDSK::SyncMode >
openmsx::DiskFactory
Definition: DiskFactory.hh:15
openmsx::DiskFactory::createDisk
std::unique_ptr< Disk > createDisk(const std::string &diskImage, DiskChanger &diskChanger)
Definition: DiskFactory.cc:37
openmsx::DiskChanger
Definition: DiskChanger.hh:25
DirAsDSK.hh
openmsx::DiskChanger
DiskChanger
Definition: DiskChanger.cc:415
openmsx::Reactor
Contains the main loop of openMSX.
Definition: Reactor.hh:67
openmsx::DiskFactory::DiskFactory
DiskFactory(Reactor &reactor)
Definition: DiskFactory.cc:20
EnumSetting.hh
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5