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
 
 CommandCompleter (CommandCompleter &&)=delete
 
CommandCompleteroperator= (const CommandCompleter &)=delete
 
CommandCompleteroperator= (CommandCompleter &&)=delete
 
CommandControllergetCommandController () const
 
InterpretergetInterpreter () const final
 
- Public Member Functions inherited from openmsx::Completer
 Completer (const Completer &)=delete
 
 Completer (Completer &&)=delete
 
Completeroperator= (const Completer &)=delete
 
Completeroperator= (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 ()
 
GlobalCommandControllergetGlobalCommandController () const
 
CliCommgetCliComm () 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_)
 

Detailed Description

Definition at line 20 of file Command.hh.

Constructor & Destructor Documentation

◆ CommandCompleter() [1/3]

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

◆ CommandCompleter() [2/3]

openmsx::CommandCompleter::CommandCompleter ( CommandCompleter &&  )
delete

◆ CommandCompleter() [3/3]

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 27 of file Command.cc.

◆ getInterpreter()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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