openMSX
MidiInConnector.hh
Go to the documentation of this file.
1 #ifndef MIDIINCONNECTOR_HH
2 #define MIDIINCONNECTOR_HH
3 
4 #include "Connector.hh"
5 #include "SerialDataInterface.hh"
6 #include "serialize_meta.hh"
7 
8 namespace openmsx {
9 
10 class MidiInDevice;
11 
13 {
14 public:
16 
17  // Connector
18  std::string_view getDescription() const final override;
19  std::string_view getClass() const final override;
20 
21  virtual bool ready() = 0;
22  virtual bool acceptsData() = 0;
23 
24  template<typename Archive>
25  void serialize(Archive& ar, unsigned version);
26 
27 protected:
28  MidiInConnector(PluggingController& pluggingController,
29  std::string name);
30  ~MidiInConnector() = default;
31 };
32 
34 
35 } // namespace openmsx
36 
37 #endif
openmsx::MidiInConnector
Definition: MidiInConnector.hh:13
SerialDataInterface.hh
openmsx::SerialDataInterface
Definition: SerialDataInterface.hh:10
serialize_meta.hh
openmsx::MidiInConnector::~MidiInConnector
~MidiInConnector()=default
openmsx::REGISTER_BASE_CLASS
REGISTER_BASE_CLASS(Connector, "Connector")
openmsx::MidiInDevice
Definition: MidiInDevice.hh:9
openmsx::MidiInConnector::MidiInConnector
MidiInConnector(PluggingController &pluggingController, std::string name)
Definition: MidiInConnector.cc:10
openmsx::MidiInConnector::getPluggedMidiInDev
MidiInDevice & getPluggedMidiInDev() const
Definition: MidiInConnector.cc:27
openmsx::MidiInConnector::ready
virtual bool ready()=0
openmsx::MidiInConnector::getClass
std::string_view getClass() const final override
A Connector belong to a certain class.
Definition: MidiInConnector.cc:22
Connector.hh
openmsx::MidiInConnector::acceptsData
virtual bool acceptsData()=0
openmsx::MidiInConnector::serialize
void serialize(Archive &ar, unsigned version)
Definition: MidiInConnector.cc:33
openmsx::Connector
Represents something you can plug devices into.
Definition: Connector.hh:21
openmsx::MidiInConnector::getDescription
std::string_view getDescription() const final override
Get a description for this connector.
Definition: MidiInConnector.cc:17
openmsx::PluggingController
Central administration of Connectors and Pluggables.
Definition: PluggingController.hh:22
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5