10 controller,
"message_callback",
11 "Tcl proc called when a new message is available",
12 "default_message_callback",
16 cliComm.
addListener(std::unique_ptr<CliListener>(
this));
29 messageCallback.execute(message, levelStr[level]);
33 postponedCommands.push_back(command);
39 std::string_view , std::string_view )
noexcept
46 for (
auto& command: postponedCommands) {
47 messageCallback.executeCommon(command);
49 postponedCommands.clear();
static std::span< const std::string_view, NUM_LEVELS > getLevelStrings()
void addListener(std::unique_ptr< CliListener > listener)
std::unique_ptr< CliListener > removeListener(CliListener &listener)
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)
void redoPostponedCallbacks()
~TclCallbackMessages() override
This file implemented 3 utility functions: