openMSX
InfoTopic.cc
Go to the documentation of this file.
1 #include "InfoTopic.hh"
2 #include "InfoCommand.hh"
3 
4 using std::string;
5 using std::vector;
6 
7 namespace openmsx {
8 
9 InfoTopic::InfoTopic(InfoCommand& infoCommand_, const string& name)
10  : Completer(name)
11  , infoCommand(infoCommand_)
12 {
13  infoCommand.registerTopic(*this, getName());
14 }
15 
17 {
18  infoCommand.unregisterTopic(*this, getName());
19 }
20 
21 void InfoTopic::tabCompletion(vector<string>& /*tokens*/) const
22 {
23  // do nothing
24 }
25 
26 } // namespace openmsx