OpenCPN Partial API docs
|
Handle logging and forwarding of incoming n0183/n2k messages. More...
#include <multiplexer.h>
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 |
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.
Multiplexer::Multiplexer | ( | const MuxLogCallbacks & | log_callbacks, |
bool & | legacy_input_filter_behaviour | ||
) |
Definition at line 186 of file multiplexer.cpp.
|
inline |
Definition at line 80 of file multiplexer.h.
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.
msg | The message to be logged. |
is_filtered | Indicates whether the message was filtered. |
is_error | Indicates whether the message has an error such as bad CRC. |
error_msg | The error message to be logged. |
Definition at line 208 of file multiplexer.cpp.
void Multiplexer::LogOutputMessage | ( | const std::shared_ptr< const NavMsg > & | msg, |
NavmsgStatus | status | ||
) | const |
Definition at line 199 of file multiplexer.cpp.