openMSX
CliListener.hh
Go to the documentation of this file.
1 #ifndef CLILISTENER_HH
2 #define CLILISTENER_HH
3 
4 #include "CliComm.hh"
5 
6 namespace openmsx {
7 
9 {
10 public:
11  virtual ~CliListener() = default;
12 
13  virtual void log(CliComm::LogLevel level, std::string_view message) = 0;
14 
15  virtual void update(CliComm::UpdateType type, std::string_view machine,
16  std::string_view name, std::string_view value) = 0;
17 
18 protected:
19  CliListener() = default;
20 };
21 
22 } // namespace openmsx
23 
24 #endif
openmsx::CliListener::update
virtual void update(CliComm::UpdateType type, std::string_view machine, std::string_view name, std::string_view value)=0
openmsx::CliComm::UpdateType
UpdateType
Definition: CliComm.hh:20
openmsx::CliListener
Definition: CliListener.hh:9
openmsx::CliListener::log
virtual void log(CliComm::LogLevel level, std::string_view message)=0
openmsx::CliComm::LogLevel
LogLevel
Definition: CliComm.hh:13
openmsx::CliListener::CliListener
CliListener()=default
openmsx::CliListener::~CliListener
virtual ~CliListener()=default
CliComm.hh
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5