1 #ifndef art_Utilities_detail_tool_type_h 2 #define art_Utilities_detail_tool_type_h 10 #include <type_traits> 18 template <
typename T,
typename =
void>
30 return factory.
makePlugin<std::unique_ptr<T>>(libspec, pset);
44 auto const pluginType = factory.
pluginType(libspec);
45 return pluginType == function_plugin_type ?
48 "tool_type::make_plugin: ")
49 <<
"Unrecognized function-tool type \"" << function_plugin_type
50 <<
"\" for plugin \"" << libspec <<
"\".\n" 51 <<
"Allowed function-tool type for above plugin is: \"" 52 << pluginType <<
"\".\n";
std::enable_if_t<!std::is_function_v< RESULT_TYPE >, RESULT_TYPE > makePlugin(std::string const &libspec, ARGS &&...args) const
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::string pluginType(std::string const &libspec) const