109{
110 auto sep =
uri.find(
"://");
111 std::string scheme;
112 if (sep == std::string::npos) {
113 scheme = "stdin";
114 } else {
115 scheme =
uri.substr(0, sep);
116 }
117 std::string plugin_name = scheme + "CommandFacility";
118 static cet::BasicPluginFactory bpf("duneCommandFacility", "make");
119 std::shared_ptr<CommandFacility> cf_ptr;
120 try {
121 cf_ptr = bpf.makePlugin<std::shared_ptr<CommandFacility>>(
122 plugin_name,
123 uri,
124 std::forward<ARGS>(args)...
125 );
126 } catch (const cet::exception &cexpt) {
130 } catch (...) {
132 }
133 return cf_ptr;
134}
Base class for any user define issue.
Unsupported std::string uri Execution of command std::string error Failed to create CommandFacility uri
Unsupported std::string uri Execution of command std::string error CommandFacilityCreationFailed