openMSX
InfoTopic.cc
Go to the documentation of this file.
1#include "InfoTopic.hh"
2#include "InfoCommand.hh"
3
4namespace openmsx {
5
6InfoTopic::InfoTopic(InfoCommand& infoCommand_, const std::string& name_)
7 : Completer(name_)
8 , infoCommand(infoCommand_)
9{
10 infoCommand.registerTopic(*this);
11}
12
14{
15 infoCommand.unregisterTopic(*this);
16}
17
18void InfoTopic::tabCompletion(std::vector<std::string>& /*tokens*/) const
19{
20 // do nothing
21}
22
24{
25 return infoCommand.getInterpreter();
26}
27
28} // namespace openmsx
Interpreter & getInterpreter() const final
Definition Command.cc:38
void unregisterTopic(const InfoTopic &topic)
void registerTopic(const InfoTopic &topic)
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this topic.
Definition InfoTopic.cc:18
InfoTopic(const InfoTopic &)=delete
Interpreter & getInterpreter() const final
Definition InfoTopic.cc:23
This file implemented 3 utility functions:
Definition Autofire.cc:11