Skip to content
Snippets Groups Projects
Commit a3d73d8f authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[functions] add convenience `create()`

parent 74c53834
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,13 @@ public:
<< ":\n"
<< available_as_str());
} // ... create(...)
static std::unique_ptr<InterfaceType> create(const Common::Configuration& cfg)
{
if (!cfg.has_key("type"))
DUNE_THROW(Exceptions::wrong_input_given, "Missing 'type' in given cfg (see below)!\n\n" << cfg);
return create(cfg.get<std::string>("type"), cfg);
}
}; // class FunctionsProvider
} // namespace Stuff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment