18#ifndef _COMM_DRV_LOOPBACK_H
19#define _COMM_DRV_LOOPBACK_H
31 AbstractCommDriver::attributes[
"protocol"] =
"loopback";
43 const std::string& msg);
47 std::shared_ptr<const NavAddr> addr)
override {
48 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.