25 l->critical(
"factory given nullptr wcnode");
29 auto nit =
m_nodes.find(wcnode);
33 auto mit =
m_factory.find(wcnode->category());
35 l->critical(
"factory failed to find maker for category: {}",
39 auto maker = mit->second;
41 Node* node = (*maker)(wcnode);
boost::error_info< struct tag_errmsg, std::string > errmsg
Node * operator()(WireCell::INode::pointer wcnode)
std::shared_ptr< Interface > pointer
logptr_t logger(std::string name)
Thrown when a wrong value has been encountered.
def maker(G, ac, typename)