Represents something you can plug devices into.
const std::string & getName() const
Name that identifies this connector.
virtual std::string_view getClass() const =0
A Connector belong to a certain class.
Thrown when a plug action fails.
virtual void unplugHelper(EmuTime::param time)=0
void plug(Connector &connector, EmuTime::param time)
This method is called when this pluggable is inserted in a connector.
void unplug(EmuTime::param time)
This method is called when this pluggable is removed from a connector.
void setConnector(Connector *conn)
virtual std::string_view getName() const
Name used to identify this pluggable.
virtual std::string_view getClass() const =0
A pluggable belongs to a certain class.
virtual void plugHelper(Connector &newConnector, EmuTime::param time)=0
This file implemented 3 utility functions: