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

Handle logging and forwarding of incoming n0183/n2k messages. More...

#include <multiplexer.h>

Inheritance diagram for Multiplexer:

Public Member Functions

 Multiplexer (const MuxLogCallbacks &log_callbacks, bool &legacy_input_filter_behaviour)
 
void LogOutputMessage (const std::shared_ptr< const NavMsg > &msg, NavmsgStatus status) const
 
void LogInputMessage (const std::shared_ptr< const NavMsg > &msg, bool is_filtered, bool is_error, const wxString &error_msg="") const
 Logs an input message with context information.
 
bool IsLogActive () const
 

Detailed Description

Handle logging and forwarding of incoming n0183/n2k messages.

Listen to all n0183 and n2k messages, whether they are known or not i.e., anything generating an input event in the Data Monitor parlance.

Definition at line 58 of file multiplexer.h.

Constructor & Destructor Documentation

◆ Multiplexer()

Multiplexer::Multiplexer ( const MuxLogCallbacks log_callbacks,
bool &  legacy_input_filter_behaviour 
)

Definition at line 186 of file multiplexer.cpp.

Member Function Documentation

◆ IsLogActive()

bool Multiplexer::IsLogActive ( ) const
inline

Definition at line 80 of file multiplexer.h.

◆ LogInputMessage()

void Multiplexer::LogInputMessage ( const std::shared_ptr< const NavMsg > &  msg,
bool  is_filtered,
bool  is_error,
const wxString &  error_msg = "" 
) const

Logs an input message with context information.

Parameters
msgThe message to be logged.
is_filteredIndicates whether the message was filtered.
is_errorIndicates whether the message has an error such as bad CRC.
error_msgThe error message to be logged.

Definition at line 208 of file multiplexer.cpp.

◆ LogOutputMessage()

void Multiplexer::LogOutputMessage ( const std::shared_ptr< const NavMsg > &  msg,
NavmsgStatus  status 
) const

Definition at line 199 of file multiplexer.cpp.


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