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

#include <GlobalCliComm.hh>

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

Public Member Functions

 GlobalCliComm (const GlobalCliComm &)=delete
 
GlobalCliCommoperator= (const GlobalCliComm &)=delete
 
 GlobalCliComm ()=default
 
 ~GlobalCliComm ()
 
void addListener (std::unique_ptr< CliListener > listener)
 
std::unique_ptr< CliListenerremoveListener (CliListener &listener)
 
void setAllowExternalCommands ()
 
void log (LogLevel level, std::string_view message) override
 
void update (UpdateType type, std::string_view name, std::string_view value) override
 
- 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)
 
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)
 

Friends

class MSXCliComm
 

Additional Inherited Members

- Public Types inherited from openmsx::CliComm
enum  LogLevel {
  INFO, WARNING, LOGLEVEL_ERROR, PROGRESS,
  NUM_LEVELS
}
 
enum  UpdateType {
  LED, SETTING, SETTINGINFO, HARDWARE,
  PLUG, MEDIA, STATUS, EXTENSION,
  SOUNDDEVICE, CONNECTOR, NUM_UPDATES
}
 
- Static Public Member Functions inherited from openmsx::CliComm
static span< const char *const > getLevelStrings ()
 
static span< const char *const > getUpdateStrings ()
 
- Protected Member Functions inherited from openmsx::CliComm
 CliComm ()=default
 
 ~CliComm ()=default
 

Detailed Description

Definition at line 15 of file GlobalCliComm.hh.

Constructor & Destructor Documentation

◆ GlobalCliComm() [1/2]

openmsx::GlobalCliComm::GlobalCliComm ( const GlobalCliComm )
delete

◆ GlobalCliComm() [2/2]

openmsx::GlobalCliComm::GlobalCliComm ( )
default

◆ ~GlobalCliComm()

openmsx::GlobalCliComm::~GlobalCliComm ( )

Definition at line 13 of file GlobalCliComm.cc.

References openmsx::Thread::isMainThread().

Member Function Documentation

◆ addListener()

void openmsx::GlobalCliComm::addListener ( std::unique_ptr< CliListener listener)

◆ log()

void openmsx::GlobalCliComm::log ( LogLevel  level,
std::string_view  message 
)
overridevirtual

Implements openmsx::CliComm.

Definition at line 55 of file GlobalCliComm.cc.

References openmsx::Thread::isMainThread().

Referenced by openmsx::MSXCliComm::log().

◆ operator=()

GlobalCliComm& openmsx::GlobalCliComm::operator= ( const GlobalCliComm )
delete

◆ removeListener()

std::unique_ptr< CliListener > openmsx::GlobalCliComm::removeListener ( CliListener listener)

◆ setAllowExternalCommands()

void openmsx::GlobalCliComm::setAllowExternalCommands ( )

Definition at line 44 of file GlobalCliComm.cc.

◆ update()

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

Friends And Related Function Documentation

◆ MSXCliComm

friend class MSXCliComm
friend

Definition at line 47 of file GlobalCliComm.hh.


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