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  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
openmsx::ProxyCmd::help
std::string help(const std::vector< std::string > &tokens) const override
Print help for this command.
Definition: ProxyCommand.cc:44
openmsx::ProxyCmd::tabCompletion
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this command.
Definition: ProxyCommand.cc:53
openmsx::ProxyCmd::ProxyCmd
ProxyCmd(Reactor &reactor, std::string_view name)
Definition: ProxyCommand.cc:14
span
Definition: span.hh:34
openmsx::Reactor
Contains the main loop of openMSX.
Definition: Reactor.hh:66
Command.hh
openmsx::Command
Definition: Command.hh:40
openmsx::TclObject
Definition: TclObject.hh:21
openmsx::ProxyCmd::execute
void execute(span< const TclObject > tokens, TclObject &result) override
Execute this command.
Definition: ProxyCommand.cc:27
openmsx::ProxyCmd
Definition: ProxyCommand.hh:11
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5