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, string_view message) = 0;
14 
15  virtual void update(CliComm::UpdateType type, string_view machine,
16  string_view name, string_view value) = 0;
17 
18 protected:
19  CliListener() = default;
20 };
21 
22 } // namespace openmsx
23 
24 #endif
virtual ~CliListener()=default
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:16
virtual void log(CliComm::LogLevel level, string_view message)=0
virtual void update(CliComm::UpdateType type, string_view machine, string_view name, string_view value)=0