openMSX
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
openmsx::CliComm Class Referenceabstract

#include <CliComm.hh>

Inheritance diagram for openmsx::CliComm:
Inheritance graph
[legend]

Public Types

enum  LogLevel {
  INFO, WARNING, LOGLEVEL_ERROR, PROGRESS,
  NUM_LEVELS
}
 
enum  UpdateType {
  LED, SETTING, SETTINGINFO, HARDWARE,
  PLUG, MEDIA, STATUS, EXTENSION,
  SOUNDDEVICE, CONNECTOR, NUM_UPDATES
}
 

Public Member Functions

virtual void log (LogLevel level, string_view message)=0
 
virtual void update (UpdateType type, string_view name, string_view value)=0
 
void printInfo (string_view message)
 
void printWarning (string_view message)
 
void printError (string_view message)
 
void printProgress (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 array_ref< const char * > getLevelStrings ()
 
static array_ref< const char * > getUpdateStrings ()
 

Protected Member Functions

 CliComm ()=default
 
 ~CliComm ()=default
 

Detailed Description

Definition at line 10 of file CliComm.hh.

Member Enumeration Documentation

◆ LogLevel

Enumerator
INFO 
WARNING 
LOGLEVEL_ERROR 
PROGRESS 
NUM_LEVELS 

Definition at line 13 of file CliComm.hh.

◆ UpdateType

Enumerator
LED 
SETTING 
SETTINGINFO 
HARDWARE 
PLUG 
MEDIA 
STATUS 
EXTENSION 
SOUNDDEVICE 
CONNECTOR 
NUM_UPDATES 

Definition at line 20 of file CliComm.hh.

Constructor & Destructor Documentation

◆ CliComm()

openmsx::CliComm::CliComm ( )
protecteddefault

Referenced by getUpdateStrings().

◆ ~CliComm()

openmsx::CliComm::~CliComm ( )
protecteddefault

Referenced by getUpdateStrings().

Member Function Documentation

◆ getLevelStrings()

static array_ref<const char*> openmsx::CliComm::getLevelStrings ( )
inlinestatic

◆ getUpdateStrings()

static array_ref<const char*> openmsx::CliComm::getUpdateStrings ( )
inlinestatic

◆ log()

virtual void openmsx::CliComm::log ( LogLevel  level,
string_view  message 
)
pure virtual

◆ printError() [1/3]

void openmsx::CliComm::printError ( string_view  message)

Definition at line 25 of file CliComm.cc.

References log(), and LOGLEVEL_ERROR.

Referenced by printError(), and openmsx::MidiSessionALSA::registerAll().

◆ printError() [2/3]

void openmsx::CliComm::printError ( const char *  message)
inline

Definition at line 53 of file CliComm.hh.

References printError().

◆ printError() [3/3]

template<typename... Args>
void openmsx::CliComm::printError ( Args &&...  args)
inline

Definition at line 69 of file CliComm.hh.

References printError(), and strCat().

◆ printInfo() [1/3]

void openmsx::CliComm::printInfo ( string_view  message)

◆ printInfo() [2/3]

void openmsx::CliComm::printInfo ( const char *  message)
inline

Definition at line 47 of file CliComm.hh.

References printInfo().

◆ printInfo() [3/3]

template<typename... Args>
void openmsx::CliComm::printInfo ( Args &&...  args)
inline

Definition at line 61 of file CliComm.hh.

References printInfo(), and strCat().

◆ printProgress() [1/3]

void openmsx::CliComm::printProgress ( string_view  message)

◆ printProgress() [2/3]

void openmsx::CliComm::printProgress ( const char *  message)
inline

Definition at line 56 of file CliComm.hh.

References printProgress().

◆ printProgress() [3/3]

template<typename... Args>
void openmsx::CliComm::printProgress ( Args &&...  args)
inline

Definition at line 73 of file CliComm.hh.

References printProgress(), and strCat().

◆ printWarning() [1/3]

void openmsx::CliComm::printWarning ( string_view  message)

Definition at line 20 of file CliComm.cc.

References log(), and WARNING.

Referenced by openmsx::AviRecorder::addImage(), openmsx::AviRecorder::addWave(), openmsx::AmdFlash::AmdFlash(), openmsx::BreakPointBase::BreakPointBase(), openmsx::BreakPointBase::checkAndExecute(), openmsx::DeviceFactory::create(), openmsx::TclCallback::execute(), openmsx::AfterCmd::execute(), openmsx::CasImage::fillBuffer(), openmsx::FirmwareSwitch::FirmwareSwitch(), openmsx::ImagePrinter::flushEmulatedPrinter(), openmsx::CassettePlayer::generateChannels(), openmsx::OggReader::getAudio(), openmsx::FilePool::getFile(), openmsx::OggReader::getFrameNo(), openmsx::Display::getWindowTitle(), openmsx::HotKey::loadBindings(), openmsx::SRAM::memset(), openmsx::OSDConsoleRenderer::OSDConsoleRenderer(), openmsx::CommandLineParser::parse(), openmsx::VDP::peekIO(), printWarning(), openmsx::SensorKid::readIO(), openmsx::DirAsDSK::readSectorImpl(), openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks(), openmsx::RomDatabase::RomDatabase(), openmsx::RomKonami::RomKonami(), openmsx::RomKonamiSCC::RomKonamiSCC(), openmsx::PostProcessor::rotateFrames(), openmsx::SamplePlayer::SamplePlayer(), openmsx::HotKey::saveBindings(), openmsx::TC8566AF::serialize(), openmsx::MSXMatsushita::serialize(), openmsx::WD2793::serialize(), openmsx::CassettePlayer::serialize(), openmsx::Connector::serialize(), openmsx::CassettePlayer::setSignal(), openmsx::OSDTopWidget::showAllErrors(), openmsx::GlobalCommandController::source(), openmsx::GlobalCommandController::tabCompletion(), openmsx::WavAudioInput::unplugHelper(), openmsx::MSXCPUInterface::unregister_IO_Out(), openmsx::VisibleSurface::VisibleSurface(), openmsx::I8255::write(), openmsx::CassettePlayer::~CassettePlayer(), openmsx::CommandConsole::~CommandConsole(), openmsx::FirmwareSwitch::~FirmwareSwitch(), openmsx::Mixer::~Mixer(), openmsx::OggReader::~OggReader(), openmsx::OSDConsoleRenderer::~OSDConsoleRenderer(), openmsx::PostProcessor::~PostProcessor(), and openmsx::SettingsConfig::~SettingsConfig().

◆ printWarning() [2/3]

void openmsx::CliComm::printWarning ( const char *  message)
inline

Definition at line 50 of file CliComm.hh.

References printWarning().

◆ printWarning() [3/3]

template<typename... Args>
void openmsx::CliComm::printWarning ( Args &&...  args)
inline

Definition at line 65 of file CliComm.hh.

References printWarning(), and strCat().

◆ update()

virtual void openmsx::CliComm::update ( UpdateType  type,
string_view  name,
string_view  value 
)
pure virtual

The documentation for this class was generated from the following files: