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

#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 ()
virtual ~CliComm ()

Detailed Description

Definition at line 9 of file CliComm.hh.

Member Enumeration Documentation

Enumerator:
INFO 
WARNING 
LOGLEVEL_ERROR 
PROGRESS 
NUM_LEVELS 

Definition at line 12 of file CliComm.hh.

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

openmsx::CliComm::CliComm ( )
protected

Definition at line 15 of file CliComm.cc.

openmsx::CliComm::~CliComm ( )
protectedvirtual

Definition at line 19 of file CliComm.cc.

Member Function Documentation

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

Definition at line 48 of file CliComm.hh.

References make_array_ref().

Referenced by openmsx::UpdateCmd::tabCompletion().

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

Definition at line 33 of file CliComm.cc.

References log(), and LOGLEVEL_ERROR.

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

Definition at line 38 of file CliComm.cc.

References log(), and PROGRESS.

void openmsx::CliComm::printWarning ( string_ref  message)
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: