OpenCPN Partial API docs
|
A plugin to plugin json message over the REST interface. More...
#include <comm_navmsg.h>
Public Member Functions | |
PluginMsg (const std::string &_name, const std::string &_dest_host, const std::string &msg) | |
PluginMsg (const std::string &_name, const std::string &msg) | |
std::string | key () const |
Return unique key used by observable to notify/listen. | |
std::string | to_string () const |
Return printable string for logging etc without trailing nl. | |
![]() | |
std::string | GetKey () const |
Alias for key(). | |
Public Attributes | |
const std::string | name |
const std::string | message |
const std::string | dest_host |
hostname, ip address or 'localhost' | |
![]() | |
const NavAddr::Bus | bus |
std::shared_ptr< const NavAddr > | source |
Source address is set by drivers when receiving, unused and should be empty when sending. | |
Additional Inherited Members | |
![]() | |
NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src) | |
A plugin to plugin json message over the REST interface.
Definition at line 315 of file comm_navmsg.h.
|
inline |
Definition at line 317 of file comm_navmsg.h.
|
inline |
Definition at line 320 of file comm_navmsg.h.
|
inline |
Definition at line 328 of file comm_navmsg.h.
|
inlinevirtual |
Return unique key used by observable to notify/listen.
Implements NavMsg.
Definition at line 337 of file comm_navmsg.h.
|
inlinevirtual |
Return printable string for logging etc without trailing nl.
Reimplemented from NavMsg.
Definition at line 339 of file comm_navmsg.h.
const std::string PluginMsg::dest_host |
hostname, ip address or 'localhost'
Definition at line 335 of file comm_navmsg.h.
const std::string PluginMsg::message |
Definition at line 334 of file comm_navmsg.h.
const std::string PluginMsg::name |
Definition at line 333 of file comm_navmsg.h.