26 const boost::property_tree::ptree &cfg,
29 , bus_sub_(ctx,
zmqpp::socket_type::sub)
30 , network_pub_(ctx,
zmqpp::socket_type::pub)
32 bus_sub_.connect(
"inproc://zmq-bus-pub");
37 void EventPublish::handle_msg_bus()
49 msg >> src >> type >> card >> bits;
50 INFO(
"Will publish card id {" << card <<
"}");
54 INFO(
"EventPublish cannot handle this type of credential yet.");
66 ss << std::hex <<
"0x";
73 INFO(
"Bla: {" << ss.str() <<
"}");
81 std::stringstream ss2;
94 void EventPublish::process_config()
96 auto port =
config_.get<
int>(
"module_config.port");
100 for (
auto &&itr :
config_.get_child(
"module_config.sources"))
102 auto name = itr.second.get<std::string>(
"");