openMSX
MSXCliComm.hh
Go to the documentation of this file.
1#ifndef MSXCLICOMM_HH
2#define MSXCLICOMM_HH
3
4#include "CliComm.hh"
5
6#include "hash_map.hh"
7#include "stl.hh"
8#include "xxhash.hh"
9
10#include <array>
11
12namespace openmsx {
13
14class MSXMotherBoard;
15class GlobalCliComm;
16
17class MSXCliComm final : public CliComm
18{
19public:
20 MSXCliComm(MSXMotherBoard& motherBoard, GlobalCliComm& cliComm);
21
22 void log(LogLevel level, std::string_view message, float fraction) override;
23 void update(UpdateType type, std::string_view name,
24 std::string_view value) override;
25 void updateFiltered(UpdateType type, std::string_view name,
26 std::string_view value) override;
27
28 // enable/disable message suppression
29 void setSuppressMessages(bool enable);
30
31private:
32 MSXMotherBoard& motherBoard;
33 GlobalCliComm& cliComm;
35 bool suppressMessages = false;
36};
37
38} // namespace openmsx
39
40#endif
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.
Definition MSXCliComm.cc:26
void update(UpdateType type, std::string_view name, std::string_view value) override
Definition MSXCliComm.cc:21
void setSuppressMessages(bool enable)
Definition MSXCliComm.cc:39
void log(LogLevel level, std::string_view message, float fraction) override
Log a message with a certain priority level.
Definition MSXCliComm.cc:14
This file implemented 3 utility functions:
Definition Autofire.cc:11