24#ifndef _COMM_DRV_LOOPBACK_H
25#define _COMM_DRV_LOOPBACK_H
37 AbstractCommDriver::attributes[
"protocol"] =
"loopback";
49 const std::string& msg);
53 std::shared_ptr<const NavAddr> addr)
override {
54 m_listener.
Notify(std::move(msg));
Common interface for all drivers.
Interface for handling incoming messages.
virtual void Notify(std::shared_ptr< const NavMsg > message)=0
Handle a received message.
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.