13class EventDistributor;
14class CommandController;
28 [[nodiscard]] std::string
help(std::span<const TclObject> tokens)
const override;
29 void tabCompletion(std::vector<std::string>& tokens)
const override;
32 void executeMatches(std::predicate<Index>
auto pred);
34 void afterSimpleEvent(std::span<const TclObject> tokens,
TclObject& result,
EventType type);
35 void afterInputEvent(
const Event& event,
36 std::span<const TclObject> tokens,
TclObject& result);
37 void afterTclTime (
int ms,
38 std::span<const TclObject> tokens,
TclObject& result);
39 void afterTime (std::span<const TclObject> tokens,
TclObject& result);
40 void afterRealTime(std::span<const TclObject> tokens,
TclObject& result);
41 void afterIdle (std::span<const TclObject> tokens,
TclObject& result);
42 void afterInfo (std::span<const TclObject> tokens,
TclObject& result);
43 void afterCancel (std::span<const TclObject> tokens,
TclObject& result);
46 int signalEvent(
const Event& event)
override;
49 std::vector<Index> afterCmds;
AfterCommand(Reactor &reactor, EventDistributor &eventDistributor, CommandController &commandController)
void execute(std::span< const TclObject > tokens, TclObject &result) override
Execute this command.
std::string help(std::span< const TclObject > tokens) const override
Print help for this command.
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this command.
Contains the main loop of openMSX.
This file implemented 3 utility functions: