| 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>& ) const |
| 20 |
{ |
| 21 |
|
| 22 |
} |
| 23 |
|
| 24 |
Interpreter& InfoTopic::getInterpreter() const |
| 25 |
{ |
| 26 |
return infoCommand.getInterpreter(); |
| 27 |
} |
| 28 |
|
| 29 |
} |