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

Public Member Functions

 UserSettingCommand (UserSettings &userSettings, CommandController &commandController)
 
virtual void execute (array_ref< TclObject > tokens, TclObject &result)
 Execute this command. More...
 
virtual string help (const vector< string > &tokens) const
 Print help for this command. More...
 
virtual void tabCompletion (vector< string > &tokens) const
 Attempt tab completion for this command. More...
 
- Public Member Functions inherited from openmsx::Command
void setAllowedInEmptyMachine (bool value)
 
bool isAllowedInEmptyMachine () const
 
- Public Member Functions inherited from openmsx::CommandCompleter
CommandControllergetCommandController () const
 
InterpretergetInterpreter () const
 
- Public Member Functions inherited from openmsx::Completer
const std::string & getName () const
 
template<typename ITER >
NEVER_INLINE std::vector
< string_ref
filter (string_ref str, ITER begin, ITER end, bool caseSensitive)
 

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 &controller, string_ref name)
 
virtual ~Command ()
 
- Protected Member Functions inherited from openmsx::CommandCompleter
 CommandCompleter (CommandController &controller, string_ref name)
 
virtual ~CommandCompleter ()
 
GlobalCommandControllergetGlobalCommandController () const
 
CliCommgetCliComm () const
 
- Protected Member Functions inherited from openmsx::Completer
 Completer (string_ref name)
 
 ~Completer ()
 

Detailed Description

Definition at line 20 of file UserSettings.cc.

Constructor & Destructor Documentation

openmsx::UserSettingCommand::UserSettingCommand ( UserSettings userSettings,
CommandController commandController 
)

Definition at line 83 of file UserSettings.cc.

Member Function Documentation

void openmsx::UserSettingCommand::execute ( array_ref< TclObject tokens,
TclObject result 
)
virtual

Execute this command.

Parameters
tokensTokenized command line; tokens[0] is the command itself.
resultThe result of the command must be assigned to this parameter.
Exceptions
CommandExceptionThrown when there was an error while executing this command.

Implements openmsx::Command.

Definition at line 90 of file UserSettings.cc.

References array_ref< T >::size().

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

Print help for this command.

Implements openmsx::Completer.

Definition at line 217 of file UserSettings.cc.

void openmsx::UserSettingCommand::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 271 of file UserSettings.cc.

References openmsx::Completer::completeString().


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