9 : motherBoard(motherBoard_)
16 if (!suppressMessages)
18 cliComm.
log(level, message);
25 cliComm.updateHelper(type, motherBoard.
getMachineID(), name, value);
31 if (
auto [it, inserted] = prevValues[type].try_emplace(name, value);
33 if (it->second == value) {
39 cliComm.updateHelper(type, motherBoard.
getMachineID(), name, value);
44 suppressMessages = enable;
void log(LogLevel level, std::string_view message) override
void log(LogLevel level, std::string_view message) override
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)
MSXCliComm(MSXMotherBoard &motherBoard, GlobalCliComm &cliComm)
std::string_view getMachineID() const
This file implemented 3 utility functions: