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, std::string_view message)=0
 
virtual void update (UpdateType type, std::string_view name, std::string_view value)=0
 
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 span< const char *const > getLevelStrings ()
 
static span< const char *const > 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

◆ ~CliComm()

openmsx::CliComm::~CliComm ( )
protecteddefault

Member Function Documentation

◆ getLevelStrings()

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

◆ getUpdateStrings()

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

Definition at line 84 of file CliComm.hh.

References NUM_UPDATES.

◆ log()

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

◆ printError() [1/3]

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

Definition at line 69 of file CliComm.hh.

References printError(), and strCat().

◆ printError() [2/3]

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

Definition at line 53 of file CliComm.hh.

References printError().

◆ printError() [3/3]

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().

◆ printInfo() [1/3]

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

Definition at line 61 of file CliComm.hh.

References printInfo(), and strCat().

◆ printInfo() [2/3]

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

Definition at line 47 of file CliComm.hh.

References printInfo().

◆ printInfo() [3/3]

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

◆ printProgress() [1/3]

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

Definition at line 73 of file CliComm.hh.

References printProgress(), and strCat().

◆ printProgress() [2/3]

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

Definition at line 56 of file CliComm.hh.

References printProgress().

◆ printProgress() [3/3]

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

Definition at line 20 of file CliComm.cc.

References log(), and PROGRESS.

Referenced by printProgress().

◆ printWarning() [1/3]

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

Definition at line 65 of file CliComm.hh.

References printWarning(), and strCat().

◆ printWarning() [2/3]

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

Definition at line 50 of file CliComm.hh.

References printWarning().

◆ printWarning() [3/3]

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

◆ update()

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

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