1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00
CLK/Analyser/Static/AmstradCPC/Target.hpp

40 lines
825 B
C++
Raw Normal View History

2018-03-09 21:10:17 +00:00
//
// Target.hpp
// Clock Signal
//
// Created by Thomas Harte on 09/03/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
2018-03-09 21:10:17 +00:00
//
#ifndef Analyser_Static_AmstradCPC_Target_h
#define Analyser_Static_AmstradCPC_Target_h
2018-03-09 21:10:17 +00:00
#include "../../../Reflection/Enum.hpp"
#include "../../../Reflection/Struct.hpp"
2018-03-09 21:10:17 +00:00
#include "../StaticAnalyser.hpp"
#include <string>
2018-03-09 21:10:17 +00:00
namespace Analyser {
namespace Static {
namespace AmstradCPC {
struct Target: public Analyser::Static::Target, public Reflection::StructImpl<Target> {
ReflectableEnum(Model, CPC464, CPC664, CPC6128);
Model model = Model::CPC464;
std::string loading_command;
Target() : Analyser::Static::Target(Machine::AmstradCPC) {
if(needs_declare()) {
DeclareField(model);
AnnounceEnum(Model);
}
}
2018-03-09 21:10:17 +00:00
};
}
}
}
#endif /* Analyser_Static_AmstradCPC_Target_h */