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) noexcept override;
19 
20  void update(CliComm::UpdateType type, std::string_view machine,
21  std::string_view name, std::string_view value) noexcept override;
22 
23 private:
24  GlobalCliComm& cliComm;
25  TclCallback messageCallback;
26 };
27 
28 } // namespace openmsx
29 
30 #endif
void update(CliComm::UpdateType type, std::string_view machine, std::string_view name, std::string_view value) noexcept override
void log(CliComm::LogLevel level, std::string_view message) noexcept override
TclCallbackMessages(GlobalCliComm &cliComm, CommandController &controller)
This file implemented 3 utility functions:
Definition: Autofire.cc:9