OpenCPN Partial API docs
Loading...
Searching...
No Matches
NavAddr Class Reference

Where messages are sent to or received from. More...

#include <comm_navmsg.h>

Inheritance diagram for NavAddr:
NavAddr0183 NavAddr2000 NavAddrSignalK NavAddrTest

Public Types

enum class  Bus {
  N0183 , Signalk , N2000 , Onenet ,
  TestBus , Undef
}
 

Public Member Functions

 NavAddr (Bus b, const std::string &i)
 
std::string to_string () const
 

Static Public Member Functions

static std::string BusToString (Bus b)
 
static Bus StringToBus (const std::string &s)
 

Public Attributes

Bus bus
 
const std::string iface
 Physical device for 0183, else a unique string. More...
 

Detailed Description

Where messages are sent to or received from.

Definition at line 136 of file comm_navmsg.h.

Member Enumeration Documentation

◆ Bus

enum class NavAddr::Bus
strong

Definition at line 138 of file comm_navmsg.h.

Constructor & Destructor Documentation

◆ NavAddr() [1/2]

NavAddr::NavAddr ( Bus  b,
const std::string &  i 
)
inline

Definition at line 140 of file comm_navmsg.h.

◆ NavAddr() [2/2]

NavAddr::NavAddr ( )
inline

Definition at line 141 of file comm_navmsg.h.

Member Function Documentation

◆ BusToString()

std::string NavAddr::BusToString ( NavAddr::Bus  b)
static

Definition at line 39 of file comm_navmsg.cpp.

◆ StringToBus()

NavAddr::Bus NavAddr::StringToBus ( const std::string &  s)
static

Definition at line 63 of file comm_navmsg.cpp.

◆ to_string()

std::string NavAddr::to_string ( ) const
inline

Definition at line 143 of file comm_navmsg.h.

Member Data Documentation

◆ bus

Bus NavAddr::bus

Definition at line 149 of file comm_navmsg.h.

◆ iface

const std::string NavAddr::iface

Physical device for 0183, else a unique string.

Definition at line 150 of file comm_navmsg.h.


The documentation for this class was generated from the following files: