1 #ifndef AFTERCOMMAND_HH
2 #define AFTERCOMMAND_HH
13 class EventDistributor;
14 class CommandController;
28 [[nodiscard]] std::string
help(
const std::vector<std::string>& tokens)
const override;
29 void tabCompletion(std::vector<std::string>& tokens)
const override;
32 template<
typename PRED>
void executeMatches(PRED pred);
33 template<EventType T>
void executeEvents();
34 template<EventType T>
void afterEvent(
36 void afterInputEvent(
const EventPtr& event,
38 void afterTclTime (
int ms,
47 int signalEvent(
const std::shared_ptr<const Event>& event) noexcept
override;
50 using AfterCmds = std::vector<std::unique_ptr<AfterCmd>>;
std::shared_ptr< const Event > EventPtr
void execute(span< const TclObject > tokens, TclObject &result) override
Execute this command.
AfterCommand(Reactor &reactor, EventDistributor &eventDistributor, CommandController &commandController)
void tabCompletion(std::vector< std::string > &tokens) const override
Attempt tab completion for this command.
std::string help(const std::vector< std::string > &tokens) const override
Print help for this command.
Contains the main loop of openMSX.
This file implemented 3 utility functions: