openMSX
InputEventFactory.hh
Go to the documentation of this file.
1 #ifndef INPUTEVENTFACTORY_HH
2 #define INPUTEVENTFACTORY_HH
3 
4 #include <memory>
5 #include <string_view>
6 
7 namespace openmsx {
8 
9 class Event;
10 class TclObject;
11 class Interpreter;
12 
13 namespace InputEventFactory
14 {
15  using EventPtr = std::shared_ptr<const Event>;
16 
17  [[nodiscard]] EventPtr createInputEvent(std::string_view str, Interpreter& interp);
18  [[nodiscard]] EventPtr createInputEvent(const TclObject& str, Interpreter& interp);
19 }
20 
21 } // namespace openmsx
22 
23 #endif
std::shared_ptr< const Event > EventPtr
EventPtr createInputEvent(const TclObject &str, Interpreter &interp)
This file implemented 3 utility functions:
Definition: Autofire.cc:5