9 : motherBoard(motherBoard_)
16 if (!suppressMessages) {
17 cliComm.
log(level, message, fraction);
23 cliComm.updateHelper(type, motherBoard.
getMachineID(), name, value);
28 if (
auto [it, inserted] = prevValues[type].try_emplace(name, value);
30 if (it->second == value) {
36 cliComm.updateHelper(type, motherBoard.
getMachineID(), name, value);
41 suppressMessages = enable;
void log(LogLevel level, std::string_view message, float fraction) override
Log a message with a certain priority level.
void updateFiltered(UpdateType type, std::string_view name, std::string_view value) override
Same as update(), but checks that the value for type-name is the same as in the previous call.
void update(UpdateType type, std::string_view name, std::string_view value) override
void setSuppressMessages(bool enable)
void log(LogLevel level, std::string_view message, float fraction) override
Log a message with a certain priority level.
MSXCliComm(MSXMotherBoard &motherBoard, GlobalCliComm &cliComm)
std::string_view getMachineID() const
This file implemented 3 utility functions: