openMSX
MidiOutConnector.hh
Go to the documentation of this file.
1 #ifndef MIDIOUTCONNECTOR_HH
2 #define MIDIOUTCONNECTOR_HH
3 
4 #include "Connector.hh"
5 #include "SerialDataInterface.hh"
6 
7 namespace openmsx {
8 
9 class MidiOutDevice;
10 
11 class MidiOutConnector final : public Connector, public SerialDataInterface
12 {
13 public:
14  MidiOutConnector(PluggingController& pluggingController,
15  std::string name);
16 
17  [[nodiscard]] MidiOutDevice& getPluggedMidiOutDev() const;
18 
19  // Connector
20  [[nodiscard]] std::string_view getDescription() const final;
21  [[nodiscard]] std::string_view getClass() const final;
22 
23  // SerialDataInterface
24  void setDataBits(DataBits bits) override;
25  void setStopBits(StopBits bits) override;
26  void setParityBit(bool enable, ParityBit parity) override;
27  void recvByte(byte value, EmuTime::param time) override;
28 
29  template<typename Archive>
30  void serialize(Archive& ar, unsigned version);
31 };
32 
33 } // namespace openmsx
34 
35 #endif
Represents something you can plug devices into.
Definition: Connector.hh:21
void serialize(Archive &ar, unsigned version)
void setStopBits(StopBits bits) override
void setDataBits(DataBits bits) override
std::string_view getClass() const final
A Connector belong to a certain class.
MidiOutDevice & getPluggedMidiOutDev() const
std::string_view getDescription() const final
Get a description for this connector.
void recvByte(byte value, EmuTime::param time) override
void setParityBit(bool enable, ParityBit parity) override
MidiOutConnector(PluggingController &pluggingController, std::string name)
Pluggable that connects an MSX MIDI out port to a host MIDI device.
Central administration of Connectors and Pluggables.
This file implemented 3 utility functions:
Definition: Autofire.cc:5