openMSX
CliComm.cc
Go to the documentation of this file.
1#include "CliComm.hh"
2
3namespace openmsx {
4
5using enum CliComm::LogLevel;
6
7void CliComm::printInfo(std::string_view message)
8{
9 log(INFO, message);
10}
11
12void CliComm::printWarning(std::string_view message)
13{
14 log(WARNING, message);
15}
16
17void CliComm::printError(std::string_view message)
18{
19 log(LOGLEVEL_ERROR, message);
20}
21
22void CliComm::printProgress(std::string_view message, float fraction)
23{
24 log(PROGRESS, message, fraction);
25}
26
27} // namespace openmsx
void printInfo(std::string_view message)
Definition CliComm.cc:7
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)
Definition CliComm.cc:22
void printError(std::string_view message)
Definition CliComm.cc:17
void printWarning(std::string_view message)
Definition CliComm.cc:12
This file implemented 3 utility functions:
Definition Autofire.cc:11