openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::CommandController Class Reference

#include <CommandController.hh>

Inheritance diagram for openmsx::CommandController:
Inheritance graph
[legend]

Public Member Functions

virtual void registerCompleter (CommandCompleter &completer, string_ref str)=0
 (Un)register a command completer, used to complete build-in Tcl cmds
virtual void unregisterCompleter (CommandCompleter &completer, string_ref str)=0
virtual void registerCommand (Command &command, const std::string &str)=0
 (Un)register a command
virtual void unregisterCommand (Command &command, string_ref str)=0
virtual bool hasCommand (string_ref command) const =0
 Does a command with this name already exist?
virtual std::string executeCommand (const std::string &command, CliConnection *connection=nullptr)=0
 Execute the given command.
virtual std::vector< std::string > splitList (const std::string &list)=0
virtual void registerSetting (Setting &setting)=0
 TODO.
virtual void unregisterSetting (Setting &setting)=0
virtual SettingfindSetting (string_ref name)=0
virtual void changeSetting (Setting &setting, const std::string &value)=0
virtual CliCommgetCliComm ()=0

Protected Member Functions

 CommandController ()
virtual ~CommandController ()

Detailed Description

Definition at line 18 of file CommandController.hh.

Constructor & Destructor Documentation

openmsx::CommandController::CommandController ( )
inlineprotected

Definition at line 60 of file CommandController.hh.

virtual openmsx::CommandController::~CommandController ( )
inlineprotectedvirtual

Definition at line 61 of file CommandController.hh.

Member Function Documentation

virtual void openmsx::CommandController::changeSetting ( Setting setting,
const std::string &  value 
)
pure virtual
virtual std::string openmsx::CommandController::executeCommand ( const std::string &  command,
CliConnection connection = nullptr 
)
pure virtual

Execute the given command.

virtual Setting* openmsx::CommandController::findSetting ( string_ref  name)
pure virtual
virtual CliComm& openmsx::CommandController::getCliComm ( )
pure virtual
virtual bool openmsx::CommandController::hasCommand ( string_ref  command) const
pure virtual

Does a command with this name already exist?

Referenced by openmsx::RealDrive::RealDrive().

virtual void openmsx::CommandController::registerCommand ( Command command,
const std::string &  str 
)
pure virtual

(Un)register a command

Referenced by openmsx::Command::Command().

virtual void openmsx::CommandController::registerCompleter ( CommandCompleter completer,
string_ref  str 
)
pure virtual

(Un)register a command completer, used to complete build-in Tcl cmds

Referenced by openmsx::CommandCompleter::CommandCompleter().

virtual void openmsx::CommandController::registerSetting ( Setting setting)
pure virtual

TODO.

Referenced by openmsx::SettingImplBase::init().

virtual std::vector<std::string> openmsx::CommandController::splitList ( const std::string &  list)
pure virtual
virtual void openmsx::CommandController::unregisterCommand ( Command command,
string_ref  str 
)
pure virtual
virtual void openmsx::CommandController::unregisterCompleter ( CommandCompleter completer,
string_ref  str 
)
pure virtual
virtual void openmsx::CommandController::unregisterSetting ( Setting setting)
pure virtual

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