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, UNPLUG, MEDIA, STATUS,
  EXTENSION, SOUNDDEVICE, CONNECTOR, NUM_UPDATES
}
 

Public Member Functions

virtual void log (LogLevel level, string_ref message)=0
 
virtual void update (UpdateType type, string_ref name, string_ref value)=0
 
void printInfo (string_ref message)
 
void printWarning (string_ref message)
 
void printError (string_ref message)
 
void printProgress (string_ref message)
 

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 9 of file CliComm.hh.

Member Enumeration Documentation

◆ LogLevel

Enumerator
INFO 
WARNING 
LOGLEVEL_ERROR 
PROGRESS 
NUM_LEVELS 

Definition at line 12 of file CliComm.hh.

◆ UpdateType

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

Definition at line 19 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_ref  message 
)
pure virtual

◆ printError()

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

Definition at line 25 of file CliComm.cc.

References log(), and LOGLEVEL_ERROR.

Referenced by openmsx::MidiSessionALSA::registerAll().

◆ printInfo()

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

◆ printProgress()

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

Definition at line 30 of file CliComm.cc.

References log(), and PROGRESS.

Referenced by openmsx::FilePool::getFile(), and openmsx::HD::switchImage().

◆ printWarning()

void openmsx::CliComm::printWarning ( string_ref  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(), openmsx::SensorKid::readIO(), openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks(), openmsx::RomKonami::RomKonami(), openmsx::RomKonamiSCC::RomKonamiSCC(), openmsx::PostProcessor::rotateFrames(), openmsx::SamplePlayer::SamplePlayer(), 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::writeControlPort(), 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().

◆ update()

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

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