OXYGENHUB
◆ main openmsx / src / commands / InfoTopic.cc
509 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#include "InfoTopic.hh"
2
3
#include "InfoCommand.hh"
4
5
namespace openmsx {
6
7
InfoTopic::InfoTopic(InfoCommand& infoCommand_, const std::string& name_)
8
	: Completer(name_)
9
	, infoCommand(infoCommand_)
10
{
11
	infoCommand.registerTopic(*this);
12
}
13
14
InfoTopic::~InfoTopic()
15
{
16
	infoCommand.unregisterTopic(*this);
17
}
18
19
void InfoTopic::tabCompletion(std::vector<std::string>& /*tokens*/) const
20
{
21
	// do nothing
22
}
23
24
Interpreter& InfoTopic::getInterpreter() const
25
{
26
	return infoCommand.getInterpreter();
27
}
28
29
} // namespace openmsx