25#ifndef DATA_MONITOR_DLG__
26#define DATA_MONITOR_DLG__
36#include "std_filesystem.h"
43 enum class Format { kVdr, kDefault, kCsv };
45 DataLogger(wxWindow* parent,
const fs::path& path);
49 void SetLogging(
bool logging);
51 void SetLogfile(
const fs::path& path);
53 fs::path GetLogfile()
const {
return m_path; }
57 void SetFormat(Format format);
59 fs::path NullLogfile();
61 std::string GetFileDlgTypes();
63 fs::path GetDefaultLogfile();
71 std::ofstream m_stream;
74 const NavmsgTimePoint m_log_start;
88 void OnFilterListChange();
89 void OnFilterUpdate(
const std::string& name);
90 void OnFilterApply(
const std::string& name);
93 wxWindow* m_quick_filter;
98 std::string m_current_filter;
EventVar OnNewLogfile
Notified with new path on filename change.
Create a stream of input messages.
Overall logging handler, outputs to screen and log file.
void Add(const Logline &ll) override
Add an input line to log output.
virtual bool IsVisible() const override
Return true if log is visible i.
Generic event handling between MVC Model and Controller based on a shared EventVar variable.
Define an action to be performed when a KeyProvider is notified.
Provide a data stream of input messages for the Data Monitor.