| 1 |
#ifndef DEVICEFACTORY_HH |
| 2 |
#define DEVICEFACTORY_HH |
| 3 |
|
| 4 |
#include <memory> |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
class MSXDevice; |
| 9 |
class DeviceConfig; |
| 10 |
class HardwareConfig; |
| 11 |
class DummyDevice; |
| 12 |
class MSXDeviceSwitch; |
| 13 |
class MSXMapperIO; |
| 14 |
class VDPIODelay; |
| 15 |
class MSXCPUInterface; |
| 16 |
|
| 17 |
class DeviceFactory |
| 18 |
{ |
| 19 |
public: |
| 20 |
[[nodiscard]] static std::unique_ptr<MSXDevice> create(DeviceConfig& conf); |
| 21 |
[[nodiscard]] static std::unique_ptr<DummyDevice> createDummyDevice( |
| 22 |
HardwareConfig& hwConf); |
| 23 |
[[nodiscard]] static std::unique_ptr<MSXDeviceSwitch> createDeviceSwitch( |
| 24 |
HardwareConfig& hwConf); |
| 25 |
[[nodiscard]] static std::unique_ptr<MSXMapperIO> createMapperIO( |
| 26 |
HardwareConfig& hwConf); |
| 27 |
[[nodiscard]] static std::unique_ptr<VDPIODelay> createVDPIODelay( |
| 28 |
HardwareConfig& hwConf, MSXCPUInterface& cpuInterface); |
| 29 |
}; |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
#endif |