openMSX
events
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
12
namespace
openmsx
{
13
14
class
MSXMotherBoard;
15
class
GlobalCliComm;
16
17
class
MSXCliComm
final :
public
CliComm
18
{
19
public
:
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
31
private
:
32
MSXMotherBoard
& motherBoard;
33
GlobalCliComm
& cliComm;
34
array_with_enum_index<CliComm::UpdateType, hash_map<std::string, std::string, XXHasher>
> prevValues;
35
bool
suppressMessages =
false
;
36
};
37
38
}
// namespace openmsx
39
40
#endif
CliComm.hh
openmsx::CliComm
Definition
CliComm.hh:14
openmsx::CliComm::UpdateType
UpdateType
Definition
CliComm.hh:23
openmsx::CliComm::LogLevel
LogLevel
Definition
CliComm.hh:16
openmsx::GlobalCliComm
Definition
GlobalCliComm.hh:20
openmsx::MSXCliComm
Definition
MSXCliComm.hh:18
openmsx::MSXCliComm::updateFiltered
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
openmsx::MSXCliComm::update
void update(UpdateType type, std::string_view name, std::string_view value) override
Definition
MSXCliComm.cc:21
openmsx::MSXCliComm::setSuppressMessages
void setSuppressMessages(bool enable)
Definition
MSXCliComm.cc:39
openmsx::MSXCliComm::log
void log(LogLevel level, std::string_view message, float fraction) override
Log a message with a certain priority level.
Definition
MSXCliComm.cc:14
openmsx::MSXMotherBoard
Definition
MSXMotherBoard.hh:84
hash_map.hh
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
stl.hh
array_with_enum_index
Definition
stl.hh:471
xxhash.hh
Generated on Wed Oct 30 2024 13:13:37 for openMSX by
1.9.8