openMSX
events
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
:
15
TclCallbackMessages
(
GlobalCliComm
& cliComm,
CommandController
& controller);
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
23
void
redoPostponedCallbacks
();
24
25
private
:
26
GlobalCliComm
& cliComm;
27
TclCallback
messageCallback;
28
29
std::vector<TclObject> postponedCommands;
30
};
31
32
}
// namespace openmsx
33
34
#endif
CliListener.hh
TclCallback.hh
openmsx::CliComm::UpdateType
UpdateType
Definition
CliComm.hh:23
openmsx::CliComm::LogLevel
LogLevel
Definition
CliComm.hh:16
openmsx::CliListener
Definition
CliListener.hh:9
openmsx::CommandController
Definition
CommandController.hh:19
openmsx::GlobalCliComm
Definition
GlobalCliComm.hh:20
openmsx::TclCallbackMessages
Definition
TclCallbackMessages.hh:13
openmsx::TclCallbackMessages::log
void log(CliComm::LogLevel level, std::string_view message, float fraction) noexcept override
Definition
TclCallbackMessages.cc:25
openmsx::TclCallbackMessages::update
void update(CliComm::UpdateType type, std::string_view machine, std::string_view name, std::string_view value) noexcept override
Definition
TclCallbackMessages.cc:42
openmsx::TclCallbackMessages::redoPostponedCallbacks
void redoPostponedCallbacks()
Definition
TclCallbackMessages.cc:49
openmsx::TclCallbackMessages::~TclCallbackMessages
~TclCallbackMessages() override
Definition
TclCallbackMessages.cc:19
openmsx::TclCallback
Definition
TclCallback.hh:15
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Sat Nov 9 2024 22:13:38 for openMSX by
1.9.8