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
7namespace openmsx {
8
9class GlobalCliComm;
10class CommandController;
11
12class TclCallbackMessages final : public CliListener
13{
14public:
16 ~TclCallbackMessages() override;
17
18 void log(CliComm::LogLevel level, std::string_view message, float fraction) 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
24
25private:
26 GlobalCliComm& cliComm;
27 TclCallback messageCallback;
28
29 std::vector<TclObject> postponedCommands;
30};
31
32} // namespace openmsx
33
34#endif
void log(CliComm::LogLevel level, std::string_view message, float fraction) noexcept override
void update(CliComm::UpdateType type, std::string_view machine, std::string_view name, std::string_view value) noexcept override
This file implemented 3 utility functions:
Definition Autofire.cc:11