26 #ifndef _COMMN0183_OUT_H
27 #define _COMMN0183_OUT_H
31 #include <wx/wxprec.h>
33 #include "model/nmea_log.h"
34 #include "model/multiplexer.h"
35 #include "observable_evtvar.h"
45 #define ERR_GARMIN_INITIALIZE -1
46 #define ERR_GARMIN_GENERAL -2
48 void BroadcastNMEA0183Message(
const wxString& msg,
NmeaLog& nmea_log,
53 std::function<void(
int)> set_value;
54 std::function<void(
int)> set_range;
55 std::function<void(
void)> pulse;
56 std::function<void(
const std::string&)> set_message;
57 std::function<bool()> confirm_overwrite;
60 : set_value([](
int) {}),
61 set_range([](
int) {}),
63 set_message([](
const std::string&) {}),
64 confirm_overwrite([]() {
return true; }) {}
68 int SendRouteToGPS_N0183(
Route* pr,
const wxString& com_name,
72 int SendWaypointToGPS_N0183(
RoutePoint* prp,
const wxString& com_name,
Generic event handling between MVC Model and Controller based on a shared EventVar variable.