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

#include <NowindCommand.hh>

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

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< DiskChangercreateDiskChanger (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
CommandControllergetCommandController () 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 ()

Detailed Description

Definition at line 13 of file NowindCommand.hh.

Constructor & Destructor Documentation

openmsx::NowindCommand::NowindCommand ( const std::string &  basename,
CommandController commandController,
NowindInterface interface 
)

Definition at line 24 of file NowindCommand.cc.

Member Function Documentation

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().

string openmsx::NowindCommand::execute ( const std::vector< std::string > &  tokens)
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.

string openmsx::NowindCommand::help ( const std::vector< std::string > &  tokens) const
virtual

Print help for this command.

Implements openmsx::Completer.

Definition at line 271 of file NowindCommand.cc.

void openmsx::NowindCommand::tabCompletion ( std::vector< std::string > &  tokens) const
virtual

Attempt tab completion for this command.

Default implementation does nothing.

Parameters
tokensTokenized 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().


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