OpenCPN Partial API docs
Loading...
Searching...
No Matches
Multiplexer Class Reference
Inheritance diagram for Multiplexer:

Public Member Functions

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

Detailed Description

Definition at line 50 of file multiplexer.h.

Constructor & Destructor Documentation

◆ Multiplexer()

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

Definition at line 65 of file multiplexer.cpp.

◆ ~Multiplexer()

Multiplexer::~Multiplexer ( )

Definition at line 81 of file multiplexer.cpp.

Member Function Documentation

◆ IsLogActive()

bool Multiplexer::IsLogActive ( )
inline

Definition at line 75 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 = "" 
)

Logs an input message with context information.

Parameters
msgThe message to be logged.
stream_nameThe name of the stream from which the message originated.
b_filterIndicates whether the message was filtered.
b_errorIndicates whether the message has an error such as bad CRC.
error_msgThe error message to be logged.

Definition at line 92 of file multiplexer.cpp.

◆ LogOutputMessage()

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

Definition at line 83 of file multiplexer.cpp.


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