OXYGENHUB
◆ main openmsx / src / serial / MidiOutConnector.hh
907 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
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]] zstring_view getDescription() const override;
21
	[[nodiscard]] zstring_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(uint8_t value, EmuTime time) override;
28
29
	template<typename Archive>
30
	void serialize(Archive& ar, unsigned version);
31
private:
32
	const std::string description;
33
};
34
35
} // namespace openmsx
36
37
#endif