10 controller,
"message_callback",
11 "Tcl proc called when a new message is available",
16 cliComm.
addListener(std::unique_ptr<CliListener>(
this));
30 messageCallback.execute(
tmpStrCat(message,
"... ",
int(100.0f * fraction),
'%'),
33 messageCallback.execute(message,
toString(level));
38 postponedCommands.push_back(command);
44 std::string_view , std::string_view )
noexcept
51 for (
auto& command: postponedCommands) {
52 messageCallback.executeCommon(command);
54 postponedCommands.clear();
CliListener * addListener(std::unique_ptr< CliListener > listener)
std::unique_ptr< CliListener > removeListener(CliListener &listener)
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
TclCallbackMessages(GlobalCliComm &cliComm, CommandController &controller)
void redoPostponedCallbacks()
~TclCallbackMessages() override
This file implemented 3 utility functions:
std::string toString(const BooleanInput &input)
TemporaryString tmpStrCat(Ts &&... ts)