openMSX
Public Member Functions | List of all members
openmsx::SaveSettingsCommand Class Reference
Inheritance diagram for openmsx::SaveSettingsCommand:
Inheritance graph
[legend]
Collaboration diagram for openmsx::SaveSettingsCommand:
Collaboration graph
[legend]

Public Member Functions

 SaveSettingsCommand (CommandController &commandController, SettingsConfig &settingsConfig)
virtual string execute (const vector< string > &tokens)
 Alternative for the execute() method above.
virtual string help (const vector< string > &tokens) const
 Print help for this command.
virtual void tabCompletion (vector< string > &tokens) const
 Attempt tab completion for this command.
- 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 22 of file SettingsConfig.cc.

Constructor & Destructor Documentation

openmsx::SaveSettingsCommand::SaveSettingsCommand ( CommandController commandController,
SettingsConfig settingsConfig 
)

Definition at line 120 of file SettingsConfig.cc.

Member Function Documentation

string openmsx::SaveSettingsCommand::execute ( const vector< 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 128 of file SettingsConfig.cc.

References openmsx::MSXException::getMessage(), and openmsx::SettingsConfig::saveSetting().

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

Print help for this command.

Implements openmsx::Completer.

Definition at line 147 of file SettingsConfig.cc.

void openmsx::SaveSettingsCommand::tabCompletion ( vector< 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 152 of file SettingsConfig.cc.

References openmsx::Completer::completeFileName().


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