2017-11-07 21:19:51 -05:00
|
|
|
//
|
|
|
|
// ROMMachine.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 07/11/2017.
|
2018-05-13 15:19:52 -04:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-11-07 21:19:51 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef ROMMachine_hpp
|
|
|
|
#define ROMMachine_hpp
|
|
|
|
|
|
|
|
#include <functional>
|
2021-06-03 21:55:59 -04:00
|
|
|
#include <map>
|
2017-11-07 21:19:51 -05:00
|
|
|
#include <memory>
|
2021-06-03 21:55:59 -04:00
|
|
|
#include <optional>
|
2018-04-23 22:11:31 -07:00
|
|
|
#include <string>
|
2017-11-07 21:19:51 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2021-06-03 21:55:59 -04:00
|
|
|
#include "Utility/ROMCatalogue.hpp"
|
2017-11-07 21:19:51 -05:00
|
|
|
|
2021-06-03 21:55:59 -04:00
|
|
|
namespace ROMMachine {
|
2019-07-19 22:35:22 -04:00
|
|
|
|
2018-07-10 20:00:46 -04: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-22 21:14:21 -04: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-10 20:00:46 -04:00
|
|
|
*/
|
2021-06-03 21:55:59 -04:00
|
|
|
typedef std::function<ROM::Map(const ROM::Request &request)> ROMFetcher;
|
2018-01-25 18:28:19 -05:00
|
|
|
|
2018-07-10 20:00:46 -04:00
|
|
|
enum class Error {
|
|
|
|
MissingROMs
|
2017-11-07 21:19:51 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* ROMMachine_h */
|