|
virtual void | execute (std::span< const TclObject > tokens, TclObject &result)=0 |
| Execute this command. More...
|
|
void | tabCompletion (std::vector< std::string > &tokens) const override |
| Attempt tab completion for this command. More...
|
|
void | setAllowedInEmptyMachine (bool value) |
|
bool | isAllowedInEmptyMachine () const |
|
void | setToken (void *token_) |
|
void * | getToken () const |
|
template<typename... Args> |
void | executeSubCommand (std::string_view subCmd, Args &&... args) |
|
Public Member Functions inherited from openmsx::CommandCompleter |
| CommandCompleter (const CommandCompleter &)=delete |
|
CommandCompleter & | operator= (const CommandCompleter &)=delete |
|
CommandController & | getCommandController () const |
|
Interpreter & | getInterpreter () const final |
|
| Completer (const Completer &)=delete |
|
Completer & | operator= (const Completer &)=delete |
|
const std::string & | getName () const |
|
virtual std::string | help (std::span< const TclObject > tokens) const =0 |
| Print help for this command. More...
|
|
virtual void | tabCompletion (std::vector< std::string > &tokens) const =0 |
| Attempt tab completion for this command. More...
|
|
virtual Interpreter & | getInterpreter () const =0 |
|
void | checkNumArgs (std::span< const TclObject > tokens, unsigned exactly, const char *errMessage) const |
|
void | checkNumArgs (std::span< const TclObject > tokens, AtLeast atLeast, const char *errMessage) const |
|
void | checkNumArgs (std::span< const TclObject > tokens, Between between, const char *errMessage) const |
|
void | checkNumArgs (std::span< const TclObject > tokens, unsigned exactly, Prefix prefix, const char *errMessage) const |
|
void | checkNumArgs (std::span< const TclObject > tokens, AtLeast atLeast, Prefix prefix, const char *errMessage) const |
|
void | checkNumArgs (std::span< const TclObject > tokens, Between between, Prefix prefix, const char *errMessage) const |
|
template<typename ITER > |
NEVER_INLINE std::vector< std::string_view > | filter (std::string_view str, ITER begin, ITER end, bool caseSensitive) |
|
Definition at line 41 of file Command.hh.
void openmsx::Command::tabCompletion |
( |
std::vector< std::string > & |
tokens | ) |
const |
|
overridevirtual |
Attempt tab completion for this command.
Default implementation does nothing.
- Parameters
-
tokens | Tokenized command line; tokens[0] is the command itself. The last token is incomplete, this method tries to complete it. |
Implements openmsx::Completer.
Reimplemented in openmsx::ProxyCmd, openmsx::AfterCommand, openmsx::MessageCommand, openmsx::DiskCommand, openmsx::NowindCommand, openmsx::HDCommand, openmsx::CDXCommand, openmsx::LSXCommand, openmsx::ExtCmd, openmsx::LoadMachineCmd, openmsx::RemoveExtCmd, openmsx::MachineCommand, openmsx::TestMachineCommand, openmsx::DeleteMachineCommand, openmsx::ActivateMachineCommand, openmsx::StoreMachineCommand, and openmsx::RestoreMachineCommand.
Definition at line 61 of file Command.cc.