openMSX
|
#include <CliComm.hh>
Public Types | |
enum | LogLevel { INFO , WARNING , LOGLEVEL_ERROR , PROGRESS , NUM_LEVELS } |
enum | UpdateType { LED , SETTING , SETTING_INFO , HARDWARE , PLUG , MEDIA , STATUS , EXTENSION , SOUND_DEVICE , CONNECTOR , DEBUG_UPDT , NUM_UPDATES } |
Public Member Functions | |
virtual void | log (LogLevel level, std::string_view message)=0 |
virtual void | update (UpdateType type, std::string_view name, std::string_view value)=0 |
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. More... | |
void | printInfo (std::string_view message) |
void | printWarning (std::string_view message) |
void | printError (std::string_view message) |
void | printProgress (std::string_view message) |
void | printInfo (const char *message) |
void | printWarning (const char *message) |
void | printError (const char *message) |
void | printProgress (const char *message) |
template<typename... Args> | |
void | printInfo (Args &&...args) |
template<typename... Args> | |
void | printWarning (Args &&...args) |
template<typename... Args> | |
void | printError (Args &&...args) |
template<typename... Args> | |
void | printProgress (Args &&...args) |
Static Public Member Functions | |
static std::span< const std::string_view, NUM_LEVELS > | getLevelStrings () |
static std::span< const std::string_view, NUM_UPDATES > | getUpdateStrings () |
Protected Member Functions | |
CliComm ()=default | |
~CliComm ()=default | |
Definition at line 11 of file CliComm.hh.
Enumerator | |
---|---|
INFO | |
WARNING | |
LOGLEVEL_ERROR | |
PROGRESS | |
NUM_LEVELS |
Definition at line 14 of file CliComm.hh.
Enumerator | |
---|---|
LED | |
SETTING | |
SETTING_INFO | |
HARDWARE | |
PLUG | |
MEDIA | |
STATUS | |
EXTENSION | |
SOUND_DEVICE | |
CONNECTOR | |
DEBUG_UPDT | |
NUM_UPDATES |
Definition at line 21 of file CliComm.hh.
|
protecteddefault |
|
protecteddefault |
|
inlinestatic |
Definition at line 88 of file CliComm.hh.
Referenced by openmsx::StdioMessages::log(), openmsx::TclCallbackMessages::log(), and openmsx::MessageCommand::tabCompletion().
|
inlinestatic |
Definition at line 94 of file CliComm.hh.
|
pure virtual |
Implemented in openmsx::GlobalCliComm, and openmsx::MSXCliComm.
Referenced by printError(), printInfo(), printProgress(), and printWarning().
|
inline |
Definition at line 77 of file CliComm.hh.
References printError(), and tmpStrCat().
|
inline |
Definition at line 59 of file CliComm.hh.
References printError().
void openmsx::CliComm::printError | ( | std::string_view | message | ) |
Definition at line 15 of file CliComm.cc.
References log(), and LOGLEVEL_ERROR.
Referenced by printError(), and openmsx::MidiSessionALSA::registerAll().
|
inline |
Definition at line 67 of file CliComm.hh.
References printInfo(), and tmpStrCat().
|
inline |
Definition at line 53 of file CliComm.hh.
References printInfo().
void openmsx::CliComm::printInfo | ( | std::string_view | message | ) |
Definition at line 5 of file CliComm.cc.
Referenced by openmsx::ImagePrinter::flushEmulatedPrinter(), openmsx::CommandLineParser::parse(), and printInfo().
|
inline |
Definition at line 82 of file CliComm.hh.
References printProgress(), and tmpStrCat().
|
inline |
Definition at line 62 of file CliComm.hh.
References printProgress().
void openmsx::CliComm::printProgress | ( | std::string_view | message | ) |
Definition at line 20 of file CliComm.cc.
References log(), and PROGRESS.
Referenced by printProgress().
|
inline |
Definition at line 72 of file CliComm.hh.
References printWarning(), and tmpStrCat().
|
inline |
Definition at line 56 of file CliComm.hh.
References printWarning().
void openmsx::CliComm::printWarning | ( | std::string_view | message | ) |
Definition at line 10 of file CliComm.cc.
References log(), and WARNING.
Referenced by openmsx::AviRecorder::addImage(), openmsx::AviRecorder::addWave(), openmsx::BreakPointBase::checkAndExecute(), openmsx::CliServer::CliServer(), openmsx::DeviceFactory::create(), openmsx::SDLVisibleSurfaceBase::createSurface(), openmsx::AfterCmd::execute(), openmsx::FirmwareSwitch::FirmwareSwitch(), openmsx::ImagePrinter::flushEmulatedPrinter(), openmsx::OggReader::getFrameNo(), openmsx::CommandLineParser::parse(), printWarning(), openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks(), openmsx::RomDatabase::RomDatabase(), openmsx::RomKonami::RomKonami(), openmsx::RomKonamiSCC::RomKonamiSCC(), openmsx::PostProcessor::rotateFrames(), openmsx::CassettePlayer::serialize(), openmsx::Connector::serialize(), openmsx::DiskChanger::serialize(), openmsx::TC8566AF::serialize(), openmsx::WD2793::serialize(), openmsx::HD::serialize(), openmsx::MSXMatsushita::serialize(), openmsx::OSDTopWidget::showAllErrors(), openmsx::GlobalCommandController::source(), openmsx::DBParser::text(), openmsx::FirmwareSwitch::~FirmwareSwitch(), openmsx::PostProcessor::~PostProcessor(), and openmsx::SettingsConfig::~SettingsConfig().
|
pure virtual |
Implemented in openmsx::GlobalCliComm, and openmsx::MSXCliComm.
Referenced by openmsx::CassettePlayer::CassettePlayer(), openmsx::DiskChanger::changeDisk(), openmsx::CartridgeSlotManager::createExternalSlot(), openmsx::MSXCPUInterface::doBreak(), openmsx::MSXCPUInterface::doContinue(), openmsx::IDECDROM::eject(), openmsx::HD::HD(), openmsx::IDECDROM::IDECDROM(), openmsx::IDECDROM::insert(), openmsx::MSXCPUInterface::insertBreakPoint(), openmsx::MSXMotherBoard::insertExtension(), openmsx::RealDrive::RealDrive(), openmsx::PluggingController::registerConnector(), openmsx::MSXMixer::registerSound(), openmsx::MSXCPUInterface::removeBreakPoint(), openmsx::MSXCPUInterface::removeCondition(), openmsx::MSXMotherBoard::removeExtension(), openmsx::CartridgeSlotManager::removeExternalSlot(), openmsx::Debugger::removeProbeBreakPoint(), openmsx::MSXCPUInterface::removeWatchPoint(), openmsx::SCSILS120::SCSILS120(), openmsx::MSXCPUInterface::setCondition(), openmsx::MSXCPUInterface::setWatchPoint(), openmsx::HD::switchImage(), openmsx::PluggingController::unregisterConnector(), openmsx::MSXMixer::unregisterSound(), openmsx::CassettePlayer::~CassettePlayer(), openmsx::HD::~HD(), openmsx::IDECDROM::~IDECDROM(), openmsx::LaserdiscPlayer::~LaserdiscPlayer(), openmsx::RealDrive::~RealDrive(), and openmsx::SCSILS120::~SCSILS120().
|
pure virtual |
Same as update(), but checks that the value for type-name is the same as in the previous call.
If so do nothing.
Implemented in openmsx::GlobalCliComm, and openmsx::MSXCliComm.
Referenced by openmsx::Setting::notifyPropertyChange().