Skip to content
Snippets Groups Projects

Add selection mechanism in graph

Merged Olivier BICHLER requested to merge select into dev
1 file
+ 6
10
Compare changes
  • Side-by-side
  • Inline
@@ -76,16 +76,12 @@ struct Registrar {
@@ -76,16 +76,12 @@ struct Registrar {
}
}
static auto create(const registrar_key& key) {
static auto create(const registrar_key& key) {
if (!exists(key)) {
AIDGE_ASSERT(exists(key),
Log::error("missing or invalid registrar key: {} for registrable object {}\nDid you include/import the corresponding module?\nIf so, it is possible that the object is not yet supported.", key, typeid(C).name());
"missing or invalid registrar key: {} for registrable object {}\n"
"Did you include/import the corresponding module?\n"
Log::info("Available registrar keys are:");
"If so, it is possible that the object is not yet supported.\n\n"
for(const auto& keyValue : C::registry()) {
"Available registrar keys are:\n {}",
Log::info("- {}", keyValue.first);
key, typeid(C).name(), fmt::join(getKeys(), "\n "));
}
AIDGE_THROW_OR_ABORT(std::runtime_error, "missing or invalid registrar key");
}
return C::registry().at(key);
return C::registry().at(key);
}
}
Loading