|
openMSX
|
#include <Completer.hh>


Public Member Functions | |
| const std::string & | getName () const |
| virtual std::string | help (const std::vector< std::string > &tokens) const =0 |
| Print help for this command. | |
| virtual void | tabCompletion (std::vector< std::string > &tokens) const =0 |
| Attempt tab completion for this command. | |
Static Public Member Functions | |
| 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 void | setOutput (InterpreterOutput *output) |
Protected Member Functions | |
| Completer (string_ref name) | |
| virtual | ~Completer () |
Additional Inherited Members |
Definition at line 14 of file Completer.hh.
|
explicitprotected |
Definition at line 19 of file Completer.cc.
|
protectedvirtual |
Definition at line 24 of file Completer.cc.
|
static |
Definition at line 102 of file Completer.hh.
Referenced by openmsx::FilenameSettingPolicy::tabCompletion(), openmsx::NowindCommand::tabCompletion(), openmsx::HDCommand::tabCompletion(), openmsx::SaveSettingsCommand::tabCompletion(), openmsx::CartCmd::tabCompletion(), openmsx::CDXCommand::tabCompletion(), openmsx::RecordCommand::tabCompletion(), openmsx::LoadSettingsCommand::tabCompletion(), openmsx::LaserdiscCommand::tabCompletion(), openmsx::DiskCommand::tabCompletion(), openmsx::ScreenShotCmd::tabCompletion(), openmsx::TapeCommand::tabCompletion(), openmsx::LSXCommand::tabCompletion(), openmsx::ReverseCmd::tabCompletion(), and openmsx::RestoreMachineCommand::tabCompletion().
|
static |
Definition at line 135 of file Completer.cc.
|
static |
Definition at line 88 of file Completer.hh.
Referenced by openmsx::BooleanSettingPolicy::tabCompletion(), openmsx::RomInfoTopic::tabCompletion(), openmsx::MessageCommand::tabCompletion(), openmsx::UserSettingCommand::tabCompletion(), openmsx::SettingInfo::tabCompletion(), openmsx::OSDCommand::tabCompletion(), openmsx::PlugCmd::tabCompletion(), openmsx::AfterCommand::tabCompletion(), openmsx::RecordCommand::tabCompletion(), openmsx::SetCompleter::tabCompletion(), openmsx::SoundDeviceInfoTopic::tabCompletion(), openmsx::LaserdiscCommand::tabCompletion(), openmsx::DebugCmd::tabCompletion(), openmsx::UnplugCmd::tabCompletion(), openmsx::SettingCompleter::tabCompletion(), openmsx::PluggableInfo::tabCompletion(), openmsx::UpdateCmd::tabCompletion(), openmsx::MachineCommand::tabCompletion(), openmsx::ConnectorInfo::tabCompletion(), openmsx::TapeCommand::tabCompletion(), openmsx::TestMachineCommand::tabCompletion(), openmsx::ConnectionClassInfo::tabCompletion(), openmsx::DeleteMachineCommand::tabCompletion(), openmsx::ReverseCmd::tabCompletion(), openmsx::ActivateMachineCommand::tabCompletion(), openmsx::StoreMachineCommand::tabCompletion(), openmsx::ConfigInfo::tabCompletion(), openmsx::LoadMachineCmd::tabCompletion(), openmsx::ExtCmd::tabCompletion(), openmsx::RemoveExtCmd::tabCompletion(), openmsx::DeviceInfo::tabCompletion(), and openmsx::EnumSettingPolicyBase::tabCompletionBase().
| const string & openmsx::Completer::getName | ( | ) | const |
Definition at line 28 of file Completer.cc.
Referenced by openmsx::Command::Command(), openmsx::CommandCompleter::CommandCompleter(), openmsx::LaserdiscCommand::execute(), openmsx::TapeCommand::execute(), openmsx::IOInfo::execute(), openmsx::InfoTopic::InfoTopic(), openmsx::Command::~Command(), openmsx::CommandCompleter::~CommandCompleter(), and openmsx::InfoTopic::~InfoTopic().
|
pure virtual |
Print help for this command.
Implemented in openmsx::DeviceInfo, openmsx::MachineNameInfo, openmsx::ListExtCmd, openmsx::LoadMachineCmd, openmsx::RealTimeInfo, openmsx::ConfigInfo, openmsx::RestoreMachineCommand, openmsx::StoreMachineCommand, openmsx::IOInfo, openmsx::ActivateMachineCommand, openmsx::ListMachinesCommand, openmsx::ExternalSlotInfo, openmsx::ReverseCmd, openmsx::DeleteMachineCommand, openmsx::SubSlottedInfo, openmsx::VDPInfo, openmsx::CreateMachineCommand, openmsx::SlotInfo, openmsx::ConnectionClassInfo, openmsx::TestMachineCommand, openmsx::DeactivateCmd, openmsx::VersionInfo, openmsx::ConnectorInfo, openmsx::ActivateCmd, openmsx::MachineCommand, openmsx::UpdateCmd, openmsx::QuitCommand, openmsx::UnbindCmd, openmsx::PluggableInfo, openmsx::FpsInfoTopic, openmsx::TabCompletionCmd, openmsx::SettingCompleter, openmsx::ScreenShotCmd, openmsx::CartridgeSlotInfo, openmsx::BindCmd, openmsx::CPUFreqInfoTopic, openmsx::DiskCommand, openmsx::LoadSettingsCommand, openmsx::HelpCmd, openmsx::SoundDeviceInfoTopic, openmsx::SetCompleter, openmsx::SoftwareInfoTopic, openmsx::RecordCommand, openmsx::InfoTopic, openmsx::TimeInfoTopic, openmsx::SaveSettingsCommand, openmsx::OSDCommand, openmsx::EscapeGrabCmd, openmsx::SettingInfo, openmsx::UserSettingCommand, openmsx::NowindCommand, openmsx::ProxyCmd, openmsx::MessageCommand, and openmsx::RomInfoTopic.
|
static |
Definition at line 185 of file Completer.cc.
Referenced by openmsx::CommandConsole::CommandConsole(), and openmsx::CommandConsole::~CommandConsole().
|
pure virtual |
Attempt tab completion for this command.
| tokens | Tokenized command line; tokens[0] is the command itself. The last token is incomplete, this method tries to complete it. |
Implemented in openmsx::DeviceInfo, openmsx::LoadMachineCmd, openmsx::ConfigInfo, openmsx::RestoreMachineCommand, openmsx::StoreMachineCommand, openmsx::ActivateMachineCommand, openmsx::ReverseCmd, openmsx::DeleteMachineCommand, openmsx::ConnectionClassInfo, openmsx::TestMachineCommand, openmsx::ConnectorInfo, openmsx::MachineCommand, openmsx::UpdateCmd, openmsx::Command, openmsx::PluggableInfo, openmsx::SettingCompleter, openmsx::ScreenShotCmd, openmsx::DiskCommand, openmsx::LoadSettingsCommand, openmsx::HelpCmd, openmsx::SoundDeviceInfoTopic, openmsx::InfoTopic, openmsx::SetCompleter, openmsx::SoftwareInfoTopic, openmsx::RecordCommand, openmsx::SaveSettingsCommand, openmsx::OSDCommand, openmsx::SettingInfo, openmsx::UserSettingCommand, openmsx::NowindCommand, openmsx::ProxyCmd, openmsx::MessageCommand, and openmsx::RomInfoTopic.
1.8.1.2