openMSX
|
#include <Command.hh>
Public Member Functions | |
CommandCompleter (const CommandCompleter &)=delete | |
CommandCompleter (CommandCompleter &&)=delete | |
CommandCompleter & | operator= (const CommandCompleter &)=delete |
CommandCompleter & | operator= (CommandCompleter &&)=delete |
CommandController & | getCommandController () const |
Interpreter & | getInterpreter () const final |
Public Member Functions inherited from openmsx::Completer | |
Completer (const Completer &)=delete | |
Completer (Completer &&)=delete | |
Completer & | operator= (const Completer &)=delete |
Completer & | operator= (Completer &&)=delete |
const std::string & | getName () const |
virtual std::string | help (std::span< const TclObject > tokens) const =0 |
Print help for this command. | |
virtual void | tabCompletion (std::vector< std::string > &tokens) const =0 |
Attempt tab completion for this command. | |
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) |
Protected Member Functions | |
CommandCompleter (CommandController &controller, std::string_view name) | |
~CommandCompleter () | |
GlobalCommandController & | getGlobalCommandController () const |
CliComm & | getCliComm () const |
Protected Member Functions inherited from openmsx::Completer | |
template<typename String > requires (!std::same_as<Completer, std::remove_cvref_t<String>>) | |
Completer (String &&name_) | |
~Completer ()=default | |
Additional Inherited Members | |
Static Public Member Functions inherited from openmsx::Completer | |
template<typename ITER > | |
static void | completeString (std::vector< std::string > &tokens, ITER begin, ITER end, bool caseSensitive=true) |
template<typename RANGE > | |
static void | completeString (std::vector< std::string > &tokens, RANGE &&possibleValues, bool caseSensitive=true) |
template<typename RANGE > | |
static void | completeFileName (std::vector< std::string > &tokens, const FileContext &context, const RANGE &extra) |
static void | completeFileName (std::vector< std::string > &tokens, const FileContext &context) |
static std::vector< std::string > | formatListInColumns (std::span< const std::string_view > input) |
static void | setOutput (InterpreterOutput *output_) |
Definition at line 20 of file Command.hh.
|
delete |
|
delete |
|
protected |
Definition at line 11 of file Command.cc.
References getCommandController(), openmsx::Completer::getName(), and openmsx::CommandController::registerCompleter().
|
protected |
Definition at line 19 of file Command.cc.
References getCommandController(), openmsx::Completer::getName(), and openmsx::CommandController::unregisterCompleter().
|
protected |
Definition at line 43 of file Command.cc.
References openmsx::CommandController::getCliComm(), and getCommandController().
Referenced by openmsx::MessageCommand::execute().
|
inline |
Definition at line 28 of file Command.hh.
Referenced by openmsx::Command::Command(), CommandCompleter(), openmsx::AfterCmd::execute(), getCliComm(), getInterpreter(), openmsx::Command::~Command(), and ~CommandCompleter().
|
protected |
Definition at line 27 of file Command.cc.
|
finalvirtual |
Implements openmsx::Completer.
Definition at line 38 of file Command.cc.
References getCommandController(), and openmsx::CommandController::getInterpreter().
Referenced by openmsx::AfterCmd::execute(), openmsx::AfterCommand::execute(), openmsx::DiskCommand::execute(), openmsx::ExitCommand::execute(), and openmsx::InfoTopic::getInterpreter().
|
delete |
|
delete |