Rename AISModel to AISLogger.

That's really what it is. Also move receiver initialization to AISView. It'll eventually move further out to an AISApp, once I figure out what an App looks like...
This commit is contained in:
Jared Boone 2016-01-13 17:05:19 -08:00
parent 8c34e116af
commit 01741f3c7c
2 changed files with 14 additions and 17 deletions

View file

@ -63,11 +63,11 @@ struct AISRecentEntry {
}
};
class AISModel {
class AISLogger {
public:
AISModel();
AISLogger();
bool on_packet(const ais::Packet& packet);
void on_packet(const ais::Packet& packet);
private:
LogFile log_file;
@ -88,7 +88,7 @@ public:
bool on_encoder(const EncoderEvent event) override;
private:
AISModel model;
AISLogger logger;
using EntryKey = ais::MMSI;
EntryKey selected_key;