1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-17 15:55:14 +00:00
CLK/Machines/Apple/AppleII/AppleII.hpp

49 lines
1.2 KiB
C++
Raw Normal View History

//
// AppleII.hpp
// Clock Signal
//
// Created by Thomas Harte on 14/04/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
//
#ifndef AppleII_hpp
#define AppleII_hpp
2020-03-18 01:53:26 +00:00
#include "../../../Configurable/Configurable.hpp"
#include "../../../Configurable/StandardOptions.hpp"
#include "../../../Analyser/Static/StaticAnalyser.hpp"
#include "../../ROMMachine.hpp"
#include <memory>
namespace Apple {
namespace II {
class Machine {
public:
virtual ~Machine();
/// Creates and returns an AppleII.
static Machine *AppleII(const Analyser::Static::Target *target, const ROMMachine::ROMFetcher &rom_fetcher);
2020-03-18 01:53:26 +00:00
/// Defines the runtime options available for an Apple II.
class Options: public Reflection::StructImpl<Options> {
public:
Configurable::Display output = Configurable::Display::CompositeColour;
Options(Configurable::OptionsType type) {
// Declare fields if necessary.
if(needs_declare()) {
DeclareField(output);
AnnounceEnumNS(Configurable, Display);
limit_enum(&output, Configurable::Display::CompositeMonochrome, Configurable::Display::CompositeColour, -1);
}
}
};
};
}
}
#endif /* AppleII_hpp */