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
8namespace openmsx {
9
10class Reactor;
11class DiskChanger;
12class Disk;
13
15{
16public:
17 explicit DiskFactory(Reactor& reactor);
18 [[nodiscard]] std::unique_ptr<Disk> createDisk(
19 const std::string& diskImage, DiskChanger& diskChanger);
20
21private:
22 Reactor& reactor;
23 EnumSetting<DirAsDSK::SyncMode> syncDirAsDSKSetting;
25};
26
27} // namespace openmsx
28
29#endif // DISKFACTORY_HH
std::unique_ptr< Disk > createDisk(const std::string &diskImage, DiskChanger &diskChanger)
Contains the main loop of openMSX.
Definition Reactor.hh:74
This file implemented 3 utility functions:
Definition Autofire.cc:11