openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::MidiInConnector Class Referenceabstract

#include <MidiInConnector.hh>

Inheritance diagram for openmsx::MidiInConnector:
Inheritance graph
[legend]
Collaboration diagram for openmsx::MidiInConnector:
Collaboration graph
[legend]

Public Member Functions

MidiInDevicegetPluggedMidiInDev () const
 
std::string_view getDescription () const final
 Get a description for this connector.
 
std::string_view getClass () const final
 A Connector belong to a certain class.
 
virtual bool ready ()=0
 
virtual bool acceptsData ()=0
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::Connector
 Connector (const Connector &)=delete
 
 Connector (Connector &&)=delete
 
Connectoroperator= (const Connector &)=delete
 
Connectoroperator= (Connector &&)=delete
 
const std::string & getName () const
 Name that identifies this connector.
 
virtual void plug (Pluggable &device, EmuTime::param time)
 This plugs a Pluggable in this Connector.
 
virtual void unplug (EmuTime::param time)
 This unplugs the currently inserted Pluggable from this Connector.
 
PluggablegetPlugged () const
 Returns the Pluggable currently plugged in.
 
PluggingControllergetPluggingController () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::SerialDataInterface
virtual void setDataBits (DataBits bits)=0
 
virtual void setStopBits (StopBits bits)=0
 
virtual void setParityBit (bool enable, Parity parity)=0
 
virtual void recvByte (byte value, EmuTime::param time)=0
 

Protected Member Functions

 MidiInConnector (PluggingController &pluggingController, std::string name)
 
 ~MidiInConnector ()=default
 
- Protected Member Functions inherited from openmsx::Connector
 Connector (PluggingController &pluggingController, std::string name, std::unique_ptr< Pluggable > dummy)
 Creates a new Connector.
 
 ~Connector ()
 
- Protected Member Functions inherited from openmsx::SerialDataInterface
 ~SerialDataInterface ()=default
 

Additional Inherited Members

- Public Types inherited from openmsx::SerialDataInterface
enum class  DataBits { D5 = 5 , D6 = 6 , D7 = 7 , D8 = 8 }
 
enum class  StopBits { INV = 0 , S1 = 2 , S1_5 = 3 , S2 = 4 }
 
enum class  Parity { EVEN = 0 , ODD = 1 }
 

Detailed Description

Definition at line 12 of file MidiInConnector.hh.

Constructor & Destructor Documentation

◆ MidiInConnector()

openmsx::MidiInConnector::MidiInConnector ( PluggingController pluggingController,
std::string  name 
)
protected

Definition at line 10 of file MidiInConnector.cc.

◆ ~MidiInConnector()

openmsx::MidiInConnector::~MidiInConnector ( )
protecteddefault

Member Function Documentation

◆ acceptsData()

virtual bool openmsx::MidiInConnector::acceptsData ( )
pure virtual

◆ getClass()

std::string_view openmsx::MidiInConnector::getClass ( ) const
finalvirtual

A Connector belong to a certain class.

Only Pluggables of this class can be plugged in this Connector.

Implements openmsx::Connector.

Definition at line 23 of file MidiInConnector.cc.

◆ getDescription()

std::string_view openmsx::MidiInConnector::getDescription ( ) const
finalvirtual

Get a description for this connector.

Implements openmsx::Connector.

Definition at line 18 of file MidiInConnector.cc.

◆ getPluggedMidiInDev()

MidiInDevice & openmsx::MidiInConnector::getPluggedMidiInDev ( ) const

Definition at line 28 of file MidiInConnector.cc.

References openmsx::Connector::getPlugged().

◆ ready()

virtual bool openmsx::MidiInConnector::ready ( )
pure virtual

◆ serialize()

template<typename Archive >
void openmsx::MidiInConnector::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 34 of file MidiInConnector.cc.


The documentation for this class was generated from the following files: