1#ifndef COMMANDCONTROLLER_HH
2#define COMMANDCONTROLLER_HH
10class CommandCompleter;
25 std::string_view str) = 0;
27 std::string_view str) = 0;
35 std::string_view str) = 0;
~CommandController()=default
CommandController()=default
virtual void registerCommand(Command &command, zstring_view str)=0
(Un)register a command
virtual Interpreter & getInterpreter()=0
virtual CliComm & getCliComm()=0
virtual void unregisterCommand(Command &command, std::string_view str)=0
virtual void registerCompleter(CommandCompleter &completer, std::string_view str)=0
(Un)register a command completer, used to complete build-in Tcl cmds
virtual void registerSetting(Setting &setting)=0
TODO.
virtual TclObject executeCommand(zstring_view command, CliConnection *connection=nullptr)=0
Execute the given command.
virtual void unregisterSetting(Setting &setting)=0
virtual void unregisterCompleter(CommandCompleter &completer, std::string_view str)=0
Like std::string_view, but with the extra guarantee that it refers to a zero-terminated string.
This file implemented 3 utility functions: