openMSX
InfoTopic.hh
Go to the documentation of this file.
1 #ifndef INFOTOPIC_HH
2 #define INFOTOPIC_HH
3 
4 #include "Completer.hh"
5 #include <string>
6 #include <vector>
7 
8 namespace openmsx {
9 
10 class TclObject;
11 class InfoCommand;
12 
13 class InfoTopic : public Completer
14 {
15 public:
24  virtual void execute(const std::vector<TclObject>& tokens,
25  TclObject& result) const = 0;
26 
31  virtual std::string help(const std::vector<std::string>& tokens) const = 0;
32 
39  virtual void tabCompletion(std::vector<std::string>& tokens) const;
40 
41 protected:
42  InfoTopic(InfoCommand& infoCommand, const std::string& name);
43  virtual ~InfoTopic();
44 
45 private:
46  InfoCommand& infoCommand;
47 };
48 
49 } // namespace openmsx
50 
51 #endif