16 cfg[
"edges"] = Json::arrayValue;
27 auto nptr = WireCell::Factory::find_maybe_tn<INode>(node);
32 int port =
get(jone,
"port",0);
33 return std::make_pair(nptr, port);
40 l->debug(
"connecting: {} edges", cfg[
"edges"].
size());
41 for (
auto jedge : cfg[
"edges"]) {
47 bool ok = m_graph.connect(fac(tail.first), fac(head.first),
48 tail.second, head.second);
50 l->critical(
"failed to connect edge: {}", jedge);
54 if (!m_graph.connected()) {
55 l->critical(
"graph not fully connected");
62 void Pgrapher::execute()
boost::error_info< struct tag_errmsg, std::string > errmsg
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
logptr_t logger(std::string name)
Thrown when a wrong value has been encountered.
#define SPDLOG_LOGGER_TRACE(logger,...)
Json::Value Configuration
auto const & get(AssnsNode< L, R, D > const &r)
static std::pair< WireCell::INode::pointer, int > get_node(WireCell::Configuration jone)
#define WIRECELL_FACTORY(NAME, CONCRETE,...)