OXYGENHUB
◆ main openmsx / src / commands / ProxyCommand.hh
591 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
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(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;
19
private:
20
	[[nodiscard]] Command* getMachineCommand() const;
21
	Reactor& reactor;
22
};
23
24
} // namespace openmsx
25
26
#endif