// // Target.hpp // Clock Signal // // Created by Thomas Harte on 18/03/2021. // Copyright © 2021 Thomas Harte. All rights reserved. // #pragma once #include "../../../Reflection/Enum.hpp" #include "../../../Reflection/Struct.hpp" #include "../StaticAnalyser.hpp" namespace Analyser::Static::ZXSpectrum { struct Target: public ::Analyser::Static::Target, public Reflection::StructImpl { ReflectableEnum(Model, SixteenK, FortyEightK, OneTwoEightK, Plus2, Plus2a, Plus3, ); Model model = Model::Plus2; bool should_hold_enter = false; Target(): Analyser::Static::Target(Machine::ZXSpectrum) { if(needs_declare()) { DeclareField(model); AnnounceEnum(Model); } } }; }