openMSX
TclCallbackMessages.hh
Go to the documentation of this file.
1 #ifndef TCLCALLBACKMESSAGES_HH
2 #define TCLCALLBACKMESSAGES_HH
3 
4 #include "CliListener.hh"
5 #include "TclCallback.hh"
6 
7 namespace openmsx {
8 
9 class GlobalCliComm;
10 class CommandController;
11 
12 class TclCallbackMessages final : public CliListener
13 {
14 public:
16  ~TclCallbackMessages() override;
17 
18  void log(CliComm::LogLevel level, std::string_view message) override;
19 
20  void update(CliComm::UpdateType type, std::string_view machine,
21  std::string_view name, std::string_view value) override;
22 
23 private:
24  GlobalCliComm& cliComm;
25  TclCallback messageCallback;
26 };
27 
28 } // namespace openmsx
29 
30 #endif
openmsx::CommandController
Definition: CommandController.hh:17
openmsx::TclCallbackMessages::update
void update(CliComm::UpdateType type, std::string_view machine, std::string_view name, std::string_view value) override
Definition: TclCallbackMessages.cc:30
openmsx::CliComm::UpdateType
UpdateType
Definition: CliComm.hh:20
openmsx::CliListener
Definition: CliListener.hh:8
openmsx::TclCallbackMessages::~TclCallbackMessages
~TclCallbackMessages() override
Definition: TclCallbackMessages.cc:18
openmsx::CliComm::LogLevel
LogLevel
Definition: CliComm.hh:13
openmsx::GlobalCliComm
Definition: GlobalCliComm.hh:15
openmsx::TclCallbackMessages
Definition: TclCallbackMessages.hh:12
CliListener.hh
TclCallback.hh
openmsx::TclCallbackMessages::log
void log(CliComm::LogLevel level, std::string_view message) override
Definition: TclCallbackMessages.cc:24
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::TclCallbackMessages::TclCallbackMessages
TclCallbackMessages(GlobalCliComm &cliComm, CommandController &controller)
Definition: TclCallbackMessages.cc:6
openmsx::TclCallback
Definition: TclCallback.hh:13