openMSX
MidiOutConnector.hh
Go to the documentation of this file.
1#ifndef MIDIOUTCONNECTOR_HH
2#define MIDIOUTCONNECTOR_HH
3
4#include "Connector.hh"
6
7namespace openmsx {
8
9class MidiOutDevice;
10
12{
13public:
14 MidiOutConnector(PluggingController& pluggingController,
15 std::string name);
16
17 [[nodiscard]] MidiOutDevice& getPluggedMidiOutDev() const;
18
19 // Connector
20 [[nodiscard]] std::string_view getDescription() const override;
21 [[nodiscard]] std::string_view getClass() const override;
22
23 // SerialDataInterface
24 void setDataBits(DataBits bits) override;
25 void setStopBits(StopBits bits) override;
26 void setParityBit(bool enable, Parity parity) override;
27 void recvByte(byte value, EmuTime::param time) override;
28
29 template<typename Archive>
30 void serialize(Archive& ar, unsigned version);
31private:
32 const std::string description;
33};
34
35} // namespace openmsx
36
37#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
void setParityBit(bool enable, Parity parity) override
std::string_view getClass() const override
A Connector belong to a certain class.
std::string_view getDescription() const override
Get a description for this connector.
MidiOutDevice & getPluggedMidiOutDev() const
void recvByte(byte value, EmuTime::param time) override
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:11