1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-19 23:32:28 +00:00
CLK/Analyser/Static/Macintosh/Target.hpp

38 lines
797 B
C++
Raw Normal View History

//
// Target.hpp
// Clock Signal
//
// Created by Thomas Harte on 03/06/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#ifndef Analyser_Static_Macintosh_Target_h
#define Analyser_Static_Macintosh_Target_h
#include "../../../Reflection/Enum.h"
#include "../../../Reflection/Struct.h"
namespace Analyser {
namespace Static {
namespace Macintosh {
struct Target: public ::Analyser::Static::Target, public Reflection::Struct<Target> {
ReflectableEnum(Model, int, Mac128k, Mac512k, Mac512ke, MacPlus);
2020-02-20 03:26:31 +00:00
Target() {
// Boilerplate for declaring fields and potential values.
if(needs_declare()) {
declare(&model, "model");
declare_enum(&model, EnumDeclaration(Model));
}
2020-02-20 03:26:31 +00:00
}
Model model = Model::MacPlus;
};
}
}
}
#endif /* Analyser_Static_Macintosh_Target_h */