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