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, std::string_view str)=0
 (Un)register a command completer, used to complete build-in Tcl cmds
 
virtual void unregisterCompleter (CommandCompleter &completer, std::string_view str)=0
 
virtual void registerCommand (Command &command, zstring_view str)=0
 (Un)register a command
 
virtual void unregisterCommand (Command &command, std::string_view str)=0
 
virtual TclObject executeCommand (zstring_view command, CliConnection *connection=nullptr)=0
 Execute the given command.
 
virtual void registerSetting (Setting &setting)=0
 TODO.
 
virtual void unregisterSetting (Setting &setting)=0
 
virtual CliCommgetCliComm ()=0
 
virtual InterpretergetInterpreter ()=0
 

Protected Member Functions

 CommandController ()=default
 
 ~CommandController ()=default
 

Detailed Description

Definition at line 18 of file CommandController.hh.

Constructor & Destructor Documentation

◆ CommandController()

openmsx::CommandController::CommandController ( )
protecteddefault

◆ ~CommandController()

openmsx::CommandController::~CommandController ( )
protecteddefault

Member Function Documentation

◆ executeCommand()

virtual TclObject openmsx::CommandController::executeCommand ( zstring_view  command,
CliConnection connection = nullptr 
)
pure virtual

Execute the given command.

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

◆ getCliComm()

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

◆ getInterpreter()

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

◆ registerCommand()

virtual void openmsx::CommandController::registerCommand ( Command command,
zstring_view  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,
std::string_view  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,
std::string_view  str 
)
pure virtual

◆ unregisterCompleter()

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

◆ unregisterSetting()

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

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