openMSX
events
CliComm.cc
Go to the documentation of this file.
1
#include "
CliComm.hh
"
2
3
namespace
openmsx
{
4
5
using
enum
CliComm::LogLevel
;
6
7
void
CliComm::printInfo
(std::string_view message)
8
{
9
log
(
INFO
, message);
10
}
11
12
void
CliComm::printWarning
(std::string_view message)
13
{
14
log
(
WARNING
, message);
15
}
16
17
void
CliComm::printError
(std::string_view message)
18
{
19
log
(
LOGLEVEL_ERROR
, message);
20
}
21
22
void
CliComm::printProgress
(std::string_view message,
float
fraction)
23
{
24
log
(
PROGRESS
, message, fraction);
25
}
26
27
}
// namespace openmsx
CliComm.hh
openmsx::CliComm::printInfo
void printInfo(std::string_view message)
Definition
CliComm.cc:7
openmsx::CliComm::log
virtual void log(LogLevel level, std::string_view message, float fraction=0.0f)=0
Log a message with a certain priority level.
openmsx::CliComm::printProgress
void printProgress(std::string_view message, float fraction)
Definition
CliComm.cc:22
openmsx::CliComm::printError
void printError(std::string_view message)
Definition
CliComm.cc:17
openmsx::CliComm::printWarning
void printWarning(std::string_view message)
Definition
CliComm.cc:12
openmsx::CliComm::LogLevel
LogLevel
Definition
CliComm.hh:16
openmsx::CliComm::LogLevel::WARNING
@ WARNING
openmsx::CliComm::LogLevel::LOGLEVEL_ERROR
@ LOGLEVEL_ERROR
openmsx::CliComm::LogLevel::INFO
@ INFO
openmsx::CliComm::LogLevel::PROGRESS
@ PROGRESS
openmsx
This file implemented 3 utility functions:
Definition
Autofire.cc:11
Generated on Sat Oct 12 2024 20:13:41 for openMSX by
1.9.8