openMSX
Public Member Functions | List of all members
openmsx::MSXCliComm Class Referencefinal

#include <MSXCliComm.hh>

Inheritance diagram for openmsx::MSXCliComm:
Inheritance graph
[legend]
Collaboration diagram for openmsx::MSXCliComm:
Collaboration graph
[legend]

Public Member Functions

 MSXCliComm (MSXMotherBoard &motherBoard, GlobalCliComm &cliComm)
 
void log (LogLevel level, std::string_view message, float fraction) override
 Log a message with a certain priority level.
 
void update (UpdateType type, std::string_view name, std::string_view value) override
 
void updateFiltered (UpdateType type, std::string_view name, std::string_view value) override
 Same as update(), but checks that the value for type-name is the same as in the previous call.
 
void setSuppressMessages (bool enable)
 
- Public Member Functions inherited from openmsx::CliComm
void printInfo (std::string_view message)
 
void printWarning (std::string_view message)
 
void printError (std::string_view message)
 
void printProgress (std::string_view message, float fraction)
 
void printInfo (const char *message)
 
void printWarning (const char *message)
 
void printError (const char *message)
 
void printProgress (const char *message, float fraction)
 
template<typename... Args>
void printInfo (Args &&...args)
 
template<typename... Args>
void printWarning (Args &&...args)
 
template<typename... Args>
void printError (Args &&...args)
 

Additional Inherited Members

- Public Types inherited from openmsx::CliComm
enum class  LogLevel {
  INFO , WARNING , LOGLEVEL_ERROR , PROGRESS ,
  NUM
}
 
enum class  UpdateType {
  LED , SETTING , SETTING_INFO , HARDWARE ,
  PLUG , MEDIA , STATUS , EXTENSION ,
  SOUND_DEVICE , CONNECTOR , DEBUG_UPDT , NUM
}
 
- Static Public Member Functions inherited from openmsx::CliComm
static auto getLevelStrings ()
 
static auto getUpdateStrings ()
 
- Protected Member Functions inherited from openmsx::CliComm
 CliComm ()=default
 
 ~CliComm ()=default
 

Detailed Description

Definition at line 17 of file MSXCliComm.hh.

Constructor & Destructor Documentation

◆ MSXCliComm()

openmsx::MSXCliComm::MSXCliComm ( MSXMotherBoard motherBoard,
GlobalCliComm cliComm 
)

Definition at line 8 of file MSXCliComm.cc.

Member Function Documentation

◆ log()

void openmsx::MSXCliComm::log ( LogLevel  level,
std::string_view  message,
float  fraction 
)
overridevirtual

Log a message with a certain priority level.

The 'fraction' parameter is only meaningful for 'level=PROGRESS'. See printProgress() for details.

Implements openmsx::CliComm.

Definition at line 14 of file MSXCliComm.cc.

References openmsx::GlobalCliComm::log().

◆ setSuppressMessages()

void openmsx::MSXCliComm::setSuppressMessages ( bool  enable)

Definition at line 39 of file MSXCliComm.cc.

◆ update()

void openmsx::MSXCliComm::update ( UpdateType  type,
std::string_view  name,
std::string_view  value 
)
overridevirtual

◆ updateFiltered()

void openmsx::MSXCliComm::updateFiltered ( UpdateType  type,
std::string_view  name,
std::string_view  value 
)
overridevirtual

Same as update(), but checks that the value for type-name is the same as in the previous call.

If so do nothing.

Implements openmsx::CliComm.

Definition at line 26 of file MSXCliComm.cc.

References openmsx::MSXMotherBoard::getMachineID().


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