openMSX
|
#include <MidiInReader.hh>
Public Member Functions | |
MidiInReader (EventDistributor &eventDistributor, Scheduler &scheduler, CommandController &commandController) | |
~MidiInReader () override | |
void | plugHelper (Connector &connector, EmuTime::param time) override |
void | unplugHelper (EmuTime::param time) override |
std::string_view | getName () const override |
Name used to identify this pluggable. More... | |
std::string_view | getDescription () const override |
Description for this pluggable. More... | |
void | signal (EmuTime::param time) override |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. More... | |
virtual void | signal (EmuTime::param time)=0 |
![]() | |
virtual | ~Pluggable ()=default |
virtual std::string_view | getName () const |
Name used to identify this pluggable. More... | |
virtual std::string_view | getClass () const =0 |
A pluggable belongs to a certain class. More... | |
virtual std::string_view | getDescription () const =0 |
Description for this pluggable. More... | |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. More... | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. More... | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. More... | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. More... | |
Additional Inherited Members | |
![]() | |
Pluggable () | |
virtual void | plugHelper (Connector &newConnector, EmuTime::param time)=0 |
virtual void | unplugHelper (EmuTime::param time)=0 |
void | setConnector (Connector *conn) |
Definition at line 20 of file MidiInReader.hh.
openmsx::MidiInReader::MidiInReader | ( | EventDistributor & | eventDistributor, |
Scheduler & | scheduler, | ||
CommandController & | commandController | ||
) |
Definition at line 16 of file MidiInReader.cc.
References openmsx::MIDI_IN_READER, and openmsx::EventDistributor::registerEventListener().
|
override |
Definition at line 28 of file MidiInReader.cc.
References openmsx::MIDI_IN_READER, and openmsx::EventDistributor::unregisterEventListener().
|
overridevirtual |
Description for this pluggable.
Implements openmsx::Pluggable.
Definition at line 63 of file MidiInReader.cc.
|
overridevirtual |
Name used to identify this pluggable.
Reimplemented from openmsx::Pluggable.
Definition at line 58 of file MidiInReader.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 34 of file MidiInReader.cc.
References openmsx::SerialDataInterface::DATA_8, openmsx::SerialDataInterface::EVEN, openmsx::FilenameSetting::getString(), openmsx::FileOperations::openFile(), openmsx::Pluggable::setConnector(), and openmsx::SerialDataInterface::STOP_1.
void openmsx::MidiInReader::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 135 of file MidiInReader.cc.
|
overridevirtual |
Implements openmsx::MidiInDevice.
Definition at line 100 of file MidiInReader.cc.
References cb_queue< T >::clear(), cb_queue< T >::empty(), openmsx::Pluggable::getConnector(), and cb_queue< T >::pop_front().
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 51 of file MidiInReader.cc.
References openmsx::Poller::abort().