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