2016-10-12 02:20:13 +00:00
|
|
|
//
|
|
|
|
// Oric.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 11/10/2016.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2016 Thomas Harte. All rights reserved.
|
2016-10-12 02:20:13 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef Oric_hpp
|
|
|
|
#define Oric_hpp
|
|
|
|
|
2020-03-18 22:31:31 +00:00
|
|
|
#include "../../Configurable/Configurable.hpp"
|
|
|
|
#include "../../Configurable/StandardOptions.hpp"
|
2018-05-09 02:05:43 +00:00
|
|
|
#include "../../Analyser/Static/StaticAnalyser.hpp"
|
2018-07-11 00:00:46 +00:00
|
|
|
#include "../ROMMachine.hpp"
|
2016-11-04 02:14:40 +00:00
|
|
|
|
2020-03-16 03:48:53 +00:00
|
|
|
#include <memory>
|
|
|
|
|
2016-10-12 02:20:13 +00:00
|
|
|
namespace Oric {
|
|
|
|
|
2017-11-21 02:55:32 +00:00
|
|
|
/// @returns The options available for an Oric.
|
2020-03-16 03:48:53 +00:00
|
|
|
std::unique_ptr<Reflection::Struct> get_options();
|
2017-11-21 02:55:32 +00:00
|
|
|
|
2017-08-16 18:35:53 +00:00
|
|
|
/*!
|
|
|
|
Models an Oric 1/Atmos with or without a Microdisc.
|
|
|
|
*/
|
2018-03-09 20:19:02 +00:00
|
|
|
class Machine {
|
2016-10-12 02:20:13 +00:00
|
|
|
public:
|
2017-08-16 18:35:53 +00:00
|
|
|
virtual ~Machine();
|
2016-10-15 01:35:15 +00:00
|
|
|
|
2017-08-16 19:33:40 +00:00
|
|
|
/// Creates and returns an Oric.
|
2018-07-11 00:00:46 +00:00
|
|
|
static Machine *Oric(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
|
2020-03-18 22:31:31 +00:00
|
|
|
|
|
|
|
class Options: public Reflection::StructImpl<Options>, public Configurable::DisplayOption<Options>, public Configurable::QuickloadOption<Options> {
|
|
|
|
friend Configurable::DisplayOption<Options>;
|
|
|
|
friend Configurable::QuickloadOption<Options>;
|
|
|
|
public:
|
|
|
|
Options(Configurable::OptionsType type) :
|
|
|
|
Configurable::DisplayOption<Options>(type == Configurable::OptionsType::UserFriendly ? Configurable::Display::RGB : Configurable::Display::CompositeColour),
|
|
|
|
Configurable::QuickloadOption<Options>(type == Configurable::OptionsType::UserFriendly) {
|
|
|
|
if(needs_declare()) {
|
|
|
|
declare_display_option();
|
|
|
|
declare_quickload_option();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2016-10-12 02:20:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif /* Oric_hpp */
|