1#ifndef GLOBALCLICOMM_HH
2#define GLOBALCLICOMM_HH
37 void log(
LogLevel level, std::string_view message,
float fraction)
override;
39 std::string_view value)
override;
41 std::string_view value)
override;
44 void updateHelper(
UpdateType type, std::string_view machine,
45 std::string_view name, std::string_view value);
50 std::vector<std::unique_ptr<CliListener>> listeners;
52 bool delivering =
false;
53 bool allowExternalCommands =
false;
CliListener * addListener(std::unique_ptr< CliListener > listener)
void log(LogLevel level, std::string_view message, float fraction) override
Log a message with a certain priority level.
void update(UpdateType type, std::string_view name, std::string_view value) override
GlobalCliComm(GlobalCliComm &&)=delete
GlobalCliComm(const GlobalCliComm &)=delete
GlobalCliComm & operator=(GlobalCliComm &&)=delete
GlobalCliComm & operator=(const GlobalCliComm &)=delete
std::unique_ptr< CliListener > removeListener(CliListener &listener)
void setAllowExternalCommands()
void updateFiltered(UpdateType type, std::string_view name, std::string_view value) override
Same as update(), but checks that the value for type-name is the same as in the previous call.
This file implemented 3 utility functions: