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

#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 More...
 
virtual void unregisterCompleter (CommandCompleter &completer, string_ref str)=0
 
virtual void registerCommand (Command &command, const std::string &str)=0
 (Un)register a command More...
 
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? More...
 
virtual TclObject executeCommand (const std::string &command, CliConnection *connection=nullptr)=0
 Execute the given command. More...
 
virtual void registerSetting (Setting &setting)=0
 TODO. More...
 
virtual void unregisterSetting (Setting &setting)=0
 
virtual CliCommgetCliComm ()=0
 
virtual InterpretergetInterpreter ()=0
 

Protected Member Functions

 CommandController ()
 
 ~CommandController ()
 

Detailed Description

Definition at line 17 of file CommandController.hh.

Constructor & Destructor Documentation

◆ CommandController()

openmsx::CommandController::CommandController ( )
inlineprotected

Definition at line 56 of file CommandController.hh.

◆ ~CommandController()

openmsx::CommandController::~CommandController ( )
inlineprotected

Definition at line 57 of file CommandController.hh.

Member Function Documentation

◆ executeCommand()

virtual TclObject openmsx::CommandController::executeCommand ( const std::string &  command,
CliConnection connection = nullptr 
)
pure virtual

◆ getCliComm()

virtual CliComm& openmsx::CommandController::getCliComm ( )
pure virtual

◆ getInterpreter()

virtual Interpreter& openmsx::CommandController::getInterpreter ( )
pure virtual

◆ hasCommand()

virtual bool openmsx::CommandController::hasCommand ( string_ref  command) const
pure virtual

Does a command with this name already exist?

Implemented in openmsx::GlobalCommandController, and openmsx::MSXCommandController.

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

◆ registerCommand()

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

(Un)register a command

Implemented in openmsx::GlobalCommandController, and openmsx::MSXCommandController.

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

◆ registerCompleter()

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

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

Implemented in openmsx::GlobalCommandController, and openmsx::MSXCommandController.

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

◆ registerSetting()

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

◆ unregisterCommand()

virtual void openmsx::CommandController::unregisterCommand ( Command command,
string_ref  str 
)
pure virtual

◆ unregisterCompleter()

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

◆ unregisterSetting()

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

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