|
openMSX
|
#include <NowindCommand.hh>


Public Member Functions | |
| NowindCommand (const std::string &basename, CommandController &commandController, NowindInterface &interface) | |
| virtual std::string | execute (const std::vector< std::string > &tokens) |
| Alternative for the execute() method above. | |
| virtual std::string | help (const std::vector< std::string > &tokens) const |
| Print help for this command. | |
| virtual void | tabCompletion (std::vector< std::string > &tokens) const |
| Attempt tab completion for this command. | |
| std::unique_ptr< DiskChanger > | createDiskChanger (const std::string &basename, unsigned n, MSXMotherBoard &motherBoard) const |
Public Member Functions inherited from openmsx::Command | |
| virtual void | execute (const std::vector< TclObject > &tokens, TclObject &result) |
| Execute this command. | |
| void | setAllowedInEmptyMachine (bool value) |
| bool | isAllowedInEmptyMachine () const |
Public Member Functions inherited from openmsx::CommandCompleter | |
| CommandController & | getCommandController () const |
Public Member Functions inherited from openmsx::Completer | |
| const std::string & | getName () const |
Additional Inherited Members | |
Static Public Member Functions inherited from openmsx::Completer | |
| 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 inherited from openmsx::Command | |
| Command (CommandController &commandController, string_ref name) | |
| virtual | ~Command () |
Definition at line 13 of file NowindCommand.hh.
| openmsx::NowindCommand::NowindCommand | ( | const std::string & | basename, |
| CommandController & | commandController, | ||
| NowindInterface & | interface | ||
| ) |
Definition at line 24 of file NowindCommand.cc.
| unique_ptr< DiskChanger > openmsx::NowindCommand::createDiskChanger | ( | const std::string & | basename, |
| unsigned | n, | ||
| MSXMotherBoard & | motherBoard | ||
| ) | const |
Definition at line 32 of file NowindCommand.cc.
Referenced by execute().
|
virtual |
Alternative for the execute() method above.
It has a simpler interface, but performance is a bit lower. Subclasses should override either this method or the one above.
Reimplemented from openmsx::Command.
Definition at line 91 of file NowindCommand.cc.
References createDiskChanger(), openmsx::NowindHost::getAllowOtherDiskroms(), openmsx::NowindHost::getEnablePhantomDrives(), openmsx::MSXException::getMessage(), openmsx::MSXDevice::getMotherBoard(), openmsx::NowindHost::setAllowOtherDiskroms(), openmsx::NowindHost::setEnablePhantomDrives(), and UNREACHABLE.
|
virtual |
Print help for this command.
Implements openmsx::Completer.
Definition at line 271 of file NowindCommand.cc.
|
virtual |
Attempt tab completion for this command.
Default implementation does nothing.
| tokens | Tokenized command line; tokens[0] is the command itself. The last token is incomplete, this method tries to complete it. |
Reimplemented from openmsx::Command.
Definition at line 323 of file NowindCommand.cc.
References openmsx::Completer::completeFileName().
1.8.1.2