25#ifndef _MULTIPLEXER_H__
26#define _MULTIPLEXER_H__
36#include "comm_navmsg.h"
39 std::function<bool()> log_is_active;
40 std::function<void(
const std::string&)> log_message;
42 : log_is_active([]() {
return false; }),
43 log_message([](
const std::string& s) { }) { }
53 void LogOutputMessage(
const wxString &msg, wxString stream_name,
55 void LogOutputMessageColor(
const wxString &msg,
const wxString &stream_name,
56 const wxString &color);
57 void LogInputMessage(
const wxString &msg,
const wxString &stream_name,
58 bool b_filter,
bool b_error =
false);
63 void HandleN0183(std::shared_ptr<const Nmea0183Msg> n0183_msg);
Keeps listening over it's lifespan, removes itself on destruction.