- Began refactoring TDF build scripts

- Separated TDF validation and mapping generation
- Moving away from the JSON mapping file, to a generated header file containing the TDF mapping.
- Other bits of tidying
This commit is contained in:
Nav
2023-12-12 23:19:21 +00:00
parent 275885e6ec
commit ec51a21846
10 changed files with 273 additions and 189 deletions

View File

@@ -11,6 +11,18 @@ namespace Targets::TargetDescription
{
using namespace Exceptions;
const std::map<std::string, GeneratedMapping::BriefTargetDescriptor>& TargetDescriptionFile::mapping() {
return GeneratedMapping::map;
}
TargetDescriptionFile::TargetDescriptionFile(const QString& xmlFilePath) {
this->init(xmlFilePath);
}
TargetDescriptionFile::TargetDescriptionFile(const QDomDocument& xml) {
this->init(xml);
}
const std::string& TargetDescriptionFile::getTargetName() const {
return this->targetName;
}