openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::CommandCompleter Class Reference

#include <Command.hh>

Inheritance diagram for openmsx::CommandCompleter:
Inheritance graph
[legend]
Collaboration diagram for openmsx::CommandCompleter:
Collaboration graph
[legend]

Public Member Functions

 CommandCompleter (const CommandCompleter &)=delete
 
CommandCompleteroperator= (const CommandCompleter &)=delete
 
CommandControllergetCommandController () const
 
InterpretergetInterpreter () const final
 
- Public Member Functions inherited from openmsx::Completer
const std::string & getName () const
 
virtual std::string help (const std::vector< std::string > &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...
 
void checkNumArgs (span< const TclObject > tokens, unsigned exactly, const char *errMessage) const
 
void checkNumArgs (span< const TclObject > tokens, AtLeast atLeast, const char *errMessage) const
 
void checkNumArgs (span< const TclObject > tokens, Between between, const char *errMessage) const
 
void checkNumArgs (span< const TclObject > tokens, unsigned exactly, Prefix prefix, const char *errMessage) const
 
void checkNumArgs (span< const TclObject > tokens, AtLeast atLeast, Prefix prefix, const char *errMessage) const
 
void checkNumArgs (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 ()
 
GlobalCommandControllergetGlobalCommandController () const
 
CliCommgetCliComm () const
 
- Protected Member Functions inherited from openmsx::Completer
 Completer (std::string_view 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, const 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 (const std::vector< std::string_view > &input)
 
static void setOutput (InterpreterOutput *output_)
 

Detailed Description

Definition at line 19 of file Command.hh.

Constructor & Destructor Documentation

◆ CommandCompleter() [1/2]

openmsx::CommandCompleter::CommandCompleter ( const CommandCompleter )
delete

Referenced by getCommandController().

◆ CommandCompleter() [2/2]

openmsx::CommandCompleter::CommandCompleter ( CommandController controller,
std::string_view  name 
)
protected

◆ ~CommandCompleter()

openmsx::CommandCompleter::~CommandCompleter ( )
protected

Member Function Documentation

◆ getCliComm()

CliComm & openmsx::CommandCompleter::getCliComm ( ) const
protected

◆ getCommandController()

CommandController& openmsx::CommandCompleter::getCommandController ( ) const
inline

◆ getGlobalCommandController()

GlobalCommandController & openmsx::CommandCompleter::getGlobalCommandController ( ) const
protected

Definition at line 30 of file Command.cc.

Referenced by getCommandController(), and openmsx::Reactor::getInterpreter().

◆ getInterpreter()

Interpreter & openmsx::CommandCompleter::getInterpreter ( ) const
finalvirtual

◆ operator=()

CommandCompleter& openmsx::CommandCompleter::operator= ( const CommandCompleter )
delete

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