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>
6 
7 namespace openmsx {
8 
9 class Reactor;
10 
11 class ProxyCmd final : public Command
12 {
13 public:
14  ProxyCmd(Reactor& reactor, std::string_view name);
15  void execute(span<const TclObject> tokens,
16  TclObject& result) override;
17  [[nodiscard]] std::string help(span<const TclObject> tokens) const override;
18  void tabCompletion(std::vector<std::string>& tokens) const override;
19 private:
20  [[nodiscard]] Command* getMachineCommand() const;
21  Reactor& reactor;
22 };
23 
24 } // namespace openmsx
25 
26 #endif
void execute(span< const TclObject > tokens, TclObject &result) override
Execute this command.
Definition: ProxyCommand.cc:24
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this command.
Definition: ProxyCommand.cc:50
std::string help(span< const TclObject > tokens) const override
Print help for this command.
Definition: ProxyCommand.cc:41
ProxyCmd(Reactor &reactor, std::string_view name)
Definition: ProxyCommand.cc:11
Contains the main loop of openMSX.
Definition: Reactor.hh:68
Definition: span.hh:126
This file implemented 3 utility functions:
Definition: Autofire.cc:9