openMSX
ProxyCommand.hh
Go to the documentation of this file.
1 #ifndef PROXYCOMMAND_HH
2 #define PROXYCOMMAND_HH
3 
4 #include "Command.hh"
5 #include "string_view.hh"
6 
7 namespace openmsx {
8 
9 class Reactor;
10 
11 class ProxyCmd final : public Command
12 {
13 public:
14  ProxyCmd(Reactor& reactor, string_view name);
15  void execute(span<const TclObject> tokens,
16  TclObject& result) override;
17  std::string help(const std::vector<std::string>& tokens) const override;
18  void tabCompletion(std::vector<std::string>& tokens) const override;
19 private:
20  Command* getMachineCommand() const;
21  Reactor& reactor;
22 };
23 
24 } // namespace openmsx
25 
26 #endif
Contains the main loop of openMSX.
Definition: Reactor.hh:66
Definition: span.hh:34
void execute(span< const TclObject > tokens, TclObject &result) override
Execute this command.
Definition: ProxyCommand.cc:27
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this command.
Definition: ProxyCommand.cc:53
std::string help(const std::vector< std::string > &tokens) const override
Print help for this command.
Definition: ProxyCommand.cc:44
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:16
ProxyCmd(Reactor &reactor, string_view name)
Definition: ProxyCommand.cc:14