42 virtual void log(
LogLevel level, std::string_view message,
float fraction = 0.0f) = 0;
44 std::string_view value) = 0;
48 std::string_view value) = 0;
51 void printInfo (std::string_view message);
78 template<
typename... Args>
80 auto tmp =
tmpStrCat(std::forward<Args>(args)...);
83 template<
typename... Args>
85 auto tmp =
tmpStrCat(std::forward<Args>(args)...);
88 template<
typename... Args>
90 auto tmp =
tmpStrCat(std::forward<Args>(args)...);
97 "info",
"warning",
"error",
"progress"
99 return std::span{levelStr};
103 "led",
"setting",
"setting-info",
"hardware",
"plug",
104 "media",
"status",
"extension",
"sounddevice",
"connector",
107 return std::span{updateStr};
void printInfo(std::string_view message)
virtual void updateFiltered(UpdateType type, std::string_view name, std::string_view value)=0
Same as update(), but checks that the value for type-name is the same as in the previous call.
virtual void log(LogLevel level, std::string_view message, float fraction=0.0f)=0
Log a message with a certain priority level.
void printProgress(std::string_view message, float fraction)
void printError(const char *message)
virtual void update(UpdateType type, std::string_view name, std::string_view value)=0
static auto getLevelStrings()
void printProgress(const char *message, float fraction)
void printInfo(Args &&...args)
void printError(std::string_view message)
void printWarning(Args &&...args)
void printWarning(std::string_view message)
void printError(Args &&...args)
void printWarning(const char *message)
void printInfo(const char *message)
static auto getUpdateStrings()
This file implemented 3 utility functions:
std::string toString(const BooleanInput &input)
constexpr auto to_underlying(E e) noexcept
TemporaryString tmpStrCat(Ts &&... ts)