2017-11-08 02:19:51 +00:00
|
|
|
//
|
|
|
|
// ROMMachine.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 07/11/2017.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-11-08 02:19:51 +00:00
|
|
|
//
|
|
|
|
|
2024-01-17 04:34:46 +00:00
|
|
|
#pragma once
|
2017-11-08 02:19:51 +00:00
|
|
|
|
|
|
|
#include <functional>
|
2021-06-04 01:55:59 +00:00
|
|
|
#include <map>
|
2017-11-08 02:19:51 +00:00
|
|
|
#include <memory>
|
2021-06-04 01:55:59 +00:00
|
|
|
#include <optional>
|
2018-04-24 05:11:31 +00:00
|
|
|
#include <string>
|
2017-11-08 02:19:51 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2021-06-04 01:55:59 +00:00
|
|
|
#include "Utility/ROMCatalogue.hpp"
|
2017-11-08 02:19:51 +00:00
|
|
|
|
2021-06-04 01:55:59 +00:00
|
|
|
namespace ROMMachine {
|
2019-07-20 02:35:22 +00:00
|
|
|
|
2018-07-11 00:00:46 +00:00
|
|
|
/*!
|
|
|
|
Defines the signature for a function that must be supplied by the host environment in order to give machines
|
|
|
|
a route for fetching any system ROMs they might need.
|
|
|
|
|
2019-07-23 01:14:21 +00:00
|
|
|
The caller will supply a vector of the names of ROM files that it would like to inspect. The recevier should
|
|
|
|
return a vector of unique_ptrs that either contain the contents of the ROM from @c names that corresponds by
|
|
|
|
index, or else are @c nullptr.
|
2018-07-11 00:00:46 +00:00
|
|
|
*/
|
2024-12-06 20:29:49 +00:00
|
|
|
typedef std::function<ROM::Map(const ROM::Request &)> ROMFetcher;
|
2018-01-25 23:28:19 +00:00
|
|
|
|
2018-07-11 00:00:46 +00:00
|
|
|
enum class Error {
|
2024-12-06 20:29:49 +00:00
|
|
|
MissingROMs,
|
2017-11-08 02:19:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|