54 const std::string &to_topic,
56 AINFO <<
"Convert: " << from_topic <<
" to " << to_topic;
57 auto writer = node_->CreateWriter<To>(to_topic);
58 auto reader = node_->CreateReader<From>(
59 from_topic, [=](
const std::shared_ptr<From> &from) {
60 std::shared_ptr<To> to(
new To());
61 bool res = convert(from, to.get());
67 writers_.push_back(writer);
68 readers_.push_back(reader);