24#ifndef _COMM_DRV_LOOPBACK_H
25#define _COMM_DRV_LOOPBACK_H
37 AbstractCommDriver::attributes[
"protocol"] =
"loopback";
38 AbstractCommDriver::attributes[
"ioDirection"] =
"OUT";
50 const std::string& msg);
54 std::shared_ptr<const NavAddr> addr)
override {
55 m_listener.Notify(std::move(msg));
Interface for handling incoming messages.
Accept messages to send; treat them as received from outside.
bool SendMessage(std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override
Accept message to forward to listener; addr is not used.
LoopbackDriver(DriverListener &l)
An instance which accepts messages and forwards it the listener.
static std::shared_ptr< const NavMsg > ParsePluginMessage(const std::string &msg)
Parse a string as provided by plugin and convert to a navmsg.
Communication driver layer.