18 [[nodiscard]]
virtual std::string_view
getName()
const;
23 [[nodiscard]]
virtual std::string_view
getClass()
const = 0;
38 void unplug(EmuTime::param time);
Represents something you can plug devices into.
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.
bool isPluggedIn() const
Returns true if this pluggable is currently plugged into a connector.
void unplug(EmuTime::param time)
This method is called when this pluggable is removed from a connector.
virtual ~Pluggable()=default
void setConnector(Connector *conn)
virtual std::string_view getName() const
Name used to identify this pluggable.
Connector * getConnector() const
Get the connector this Pluggable is plugged into.
virtual std::string_view getClass() const =0
A pluggable belongs to a certain class.
virtual void plugHelper(Connector &newConnector, EmuTime::param time)=0
virtual std::string_view getDescription() const =0
Description for this pluggable.
This file implemented 3 utility functions: