openMSX
CliComm.cc
Go to the documentation of this file.
1 #include "CliComm.hh"
2 
3 namespace openmsx {
4 
5 const char* const CliComm::levelStr[CliComm::NUM_LEVELS] = {
6  "info", "warning", "error", "progress"
7 };
8 
9 const char* const CliComm::updateStr[CliComm::NUM_UPDATES] = {
10  "led", "setting", "setting-info", "hardware", "plug",
11  "media", "status", "extension", "sounddevice", "connector"
12 };
13 
14 
16 {
17  log(INFO, message);
18 }
19 
21 {
22  log(WARNING, message);
23 }
24 
26 {
27  log(LOGLEVEL_ERROR, message);
28 }
29 
31 {
32  log(PROGRESS, message);
33 }
34 
35 } // namespace openmsx
void printInfo(string_view message)
Definition: CliComm.cc:15
virtual void log(LogLevel level, string_view message)=0
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:16
void printProgress(string_view message)
Definition: CliComm.cc:30
void printWarning(string_view message)
Definition: CliComm.cc:20
void printError(string_view message)
Definition: CliComm.cc:25