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

#include <InfoTopic.hh>

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

Public Member Functions

virtual void execute (const std::vector< TclObject > &tokens, TclObject &result) const =0
 Show info on this topic.
virtual std::string help (const std::vector< std::string > &tokens) const =0
 Print help for this topic.
virtual void tabCompletion (std::vector< std::string > &tokens) const
 Attempt tab completion for this topic.
- Public Member Functions inherited from openmsx::Completer
const std::string & getName () const

Protected Member Functions

 InfoTopic (InfoCommand &infoCommand, const std::string &name)
virtual ~InfoTopic ()
- Protected Member Functions inherited from openmsx::Completer
 Completer (string_ref name)
virtual ~Completer ()

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)

Detailed Description

Definition at line 13 of file InfoTopic.hh.

Constructor & Destructor Documentation

openmsx::InfoTopic::InfoTopic ( InfoCommand infoCommand,
const std::string &  name 
)
protected
openmsx::InfoTopic::~InfoTopic ( )
protectedvirtual

Member Function Documentation

virtual void openmsx::InfoTopic::execute ( const std::vector< TclObject > &  tokens,
TclObject result 
) const
pure virtual
virtual std::string openmsx::InfoTopic::help ( const std::vector< std::string > &  tokens) const
pure virtual
void openmsx::InfoTopic::tabCompletion ( std::vector< std::string > &  tokens) const
virtual

Attempt tab completion for this topic.

Default implementation does nothing.

Parameters
tokensTokenized command line; tokens[1] is the topic. The last token is incomplete, this method tries to complete it.

Implements openmsx::Completer.

Reimplemented in openmsx::DeviceInfo, openmsx::ConfigInfo, openmsx::ConnectionClassInfo, openmsx::ConnectorInfo, openmsx::PluggableInfo, openmsx::SoundDeviceInfoTopic, openmsx::SoftwareInfoTopic, openmsx::SettingInfo, and openmsx::RomInfoTopic.

Definition at line 21 of file InfoTopic.cc.


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