openMSX
events
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
openmsx::Interpreter
Definition:
Interpreter.hh:19
openmsx::TclObject
Definition:
TclObject.hh:24
openmsx::InputEventFactory::EventPtr
std::shared_ptr< const Event > EventPtr
Definition:
InputEventFactory.hh:15
openmsx::InputEventFactory::createInputEvent
EventPtr createInputEvent(const TclObject &str, Interpreter &interp)
Definition:
InputEventFactory.cc:253
openmsx
This file implemented 3 utility functions:
Definition:
Autofire.cc:5
Generated on Fri Feb 26 2021 22:13:43 for openMSX by
1.9.1