openMSX
MessageCommand.hh
Go to the documentation of this file.
1 #ifndef MESSAGECOMMAND_HH
2 #define MESSAGECOMMAND_HH
3 
4 #include "Command.hh"
5 
6 namespace openmsx {
7 
8 class CommandController;
9 
10 class MessageCommand final : public Command
11 {
12 public:
13  explicit MessageCommand(CommandController& controller);
14 
15  void execute(span<const TclObject> tokens, TclObject& result) override;
16  std::string help(const std::vector<std::string>& tokens) const override;
17  void tabCompletion(std::vector<std::string>& tokens) const override;
18 };
19 
20 } // namespace openmsx
21 
22 #endif
openmsx::MessageCommand::execute
void execute(span< const TclObject > tokens, TclObject &result) override
Execute this command.
Definition: MessageCommand.cc:25
openmsx::CommandController
Definition: CommandController.hh:18
openmsx::MessageCommand::MessageCommand
MessageCommand(CommandController &controller)
Definition: MessageCommand.cc:9
span
Definition: span.hh:126
openmsx::MessageCommand::help
std::string help(const std::vector< std::string > &tokens) const override
Print help for this command.
Definition: MessageCommand.cc:40
openmsx::MessageCommand
Definition: MessageCommand.hh:11
Command.hh
openmsx::Command
Definition: Command.hh:41
openmsx::TclObject
Definition: TclObject.hh:22
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::MessageCommand::tabCompletion
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this command.
Definition: MessageCommand.cc:49