openMSX
InputEventFactory.hh
Go to the documentation of this file.
1 #ifndef INPUTEVENTFACTORY_HH
2 #define INPUTEVENTFACTORY_HH
3 
4 #include "string_view.hh"
5 #include <memory>
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 
18  EventPtr createInputEvent(const TclObject& str, Interpreter& interp);
19 }
20 
21 } // namespace openmsx
22 
23 #endif
std::shared_ptr< const Event > EventPtr
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
This class implements a (close approximation) of the std::string_view class.
Definition: string_view.hh:15
EventPtr createInputEvent(const TclObject &str, Interpreter &interp)