106 AisError DecodeN0183(
const wxString &str);
107 std::unordered_map<int, std::shared_ptr<AisTargetData>> &GetTargetList(
void) {
108 return AISTargetList;
110 std::unordered_map<int, std::shared_ptr<AisTargetData>> &
111 GetAreaNoticeSourcesList(
void) {
112 return AIS_AreaNotice_Sources;
114 std::shared_ptr<AisTargetData> Get_Target_Data_From_MMSI(
int mmsi);
115 int GetNumTargets(
void) {
return m_n_targets; }
116 bool IsAISSuppressed(
void) {
return m_bSuppressed; }
117 bool IsAISAlertGeneral(
void) {
return m_bGeneralAlert; }
120 void DeletePersistentTrack(
Track *track);
121 std::map<int, Track *> m_persistent_tracks;
122 bool AIS_AlertPlaying(
void) {
return m_bAIS_AlertPlaying; };
146 void OnActivate(wxActivateEvent &event);
147 void OnTimerAIS(wxTimerEvent &event);
148 void OnTimerDSC(wxTimerEvent &event);
150 bool NMEACheckSumOK(
const wxString &str);
152 std::shared_ptr<AisTargetData> ptd);
153 void UpdateAllCPA(
void);
155 void UpdateAllAlarms(
void);
156 void UpdateAllTracks(
void);
158 void BuildERIShipTypeHash(
void);
159 std::shared_ptr<AisTargetData> ProcessDSx(
const wxString &str,
160 bool b_take_dsc =
false);
162 wxString DecodeDSEExpansionCharacters(wxString dseData);
163 void getAISTarget(
long mmsi, std::shared_ptr<AisTargetData> &pTargetData,
164 std::shared_ptr<AisTargetData> &pStaleTarget,
165 bool &bnewtarget,
int &last_report_ticks, wxDateTime &now);
166 void getMmsiProperties(std::shared_ptr<AisTargetData> &pTargetData);
167 void handleUpdate(std::shared_ptr<AisTargetData> pTargetData,
bool bnewtarget,
168 const rapidjson::Value &update);
169 void updateItem(std::shared_ptr<AisTargetData> pTargetData,
bool bnewtarget,
170 const rapidjson::Value &item, wxString &sfixtime)
const;
171 void CommitAISTarget(std::shared_ptr<AisTargetData> pTargetData,
172 const wxString &str,
bool message_valid,
174 void InitCommListeners(
void);
175 bool HandleN0183_AIS(std::shared_ptr<const Nmea0183Msg> n0183_msg);
176 void HandleSignalK(std::shared_ptr<const SignalkMsg> sK_msg);
178 bool HandleN2K_129038(std::shared_ptr<const Nmea2000Msg> n2k_msg);
179 bool HandleN2K_129039(std::shared_ptr<const Nmea2000Msg> n2k_msg);
180 bool HandleN2K_129041(std::shared_ptr<const Nmea2000Msg> n2k_msg);
181 bool HandleN2K_129794(std::shared_ptr<const Nmea2000Msg> n2k_msg);
182 bool HandleN2K_129809(std::shared_ptr<const Nmea2000Msg> n2k_msg);
183 bool HandleN2K_129810(std::shared_ptr<const Nmea2000Msg> n2k_msg);
184 bool HandleN2K_129793(std::shared_ptr<const Nmea2000Msg> n2k_msg);
186 wxString m_signalk_selfid;
187 std::unordered_map<int, std::shared_ptr<AisTargetData>> AISTargetList;
188 std::unordered_map<int, std::shared_ptr<AisTargetData>>
189 AIS_AreaNotice_Sources;
190 AIS_Target_Name_Hash *AISTargetNamesC;
191 AIS_Target_Name_Hash *AISTargetNamesNC;
213 wxFrame *m_parent_frame;
218 wxString sentence_accumulator;
221 std::shared_ptr<AisTargetData> m_pLatestTargetData;
223 bool m_bAIS_Audio_Alert_On;
224 wxTimer m_AIS_Audio_Alert_Timer;
227 bool m_bGeneralAlert;
228 std::shared_ptr<AisTargetData> m_ptentative_dsctarget;
230 wxString m_dsc_last_string;
231 std::vector<int> m_MMSI_MismatchVec;
233 bool m_bAIS_AlertPlaying;
234 DECLARE_EVENT_TABLE()