openMSX
|
Central administration of Connectors and Pluggables. More...
#include <PluggingController.hh>
Public Member Functions | |
PluggingController (MSXMotherBoard &motherBoard) | |
~PluggingController () | |
void | registerConnector (Connector &connector) |
Connectors must be (un)registered. | |
void | unregisterConnector (Connector &connector) |
Connector * | findConnector (std::string_view name) const |
Return the Connector with given name or nullptr if there is none with this name. | |
void | registerPluggable (std::unique_ptr< Pluggable > pluggable) |
Add a Pluggable to the registry. | |
Pluggable * | findPluggable (std::string_view name) const |
Return the Pluggable with given name or nullptr if there is none with this name. | |
const auto & | getConnectors () const |
const auto & | getPluggables () const |
CliComm & | getCliComm () |
Access to the MSX specific CliComm, so that Connectors can get it. | |
EmuTime::param | getCurrentTime () const |
Convenience method: get current time. | |
Central administration of Connectors and Pluggables.
Definition at line 21 of file PluggingController.hh.
|
explicit |
Definition at line 20 of file PluggingController.cc.
References openmsx::PluggableFactory::createAll().
openmsx::PluggingController::~PluggingController | ( | ) |
Definition at line 37 of file PluggingController.cc.
Connector * openmsx::PluggingController::findConnector | ( | std::string_view | name | ) | const |
Return the Connector with given name or nullptr if there is none with this name.
Definition at line 195 of file PluggingController.cc.
References end(), ranges::find(), and openmsx::Connector::getName().
Pluggable * openmsx::PluggingController::findPluggable | ( | std::string_view | name | ) | const |
Return the Pluggable with given name or nullptr if there is none with this name.
Definition at line 209 of file PluggingController.cc.
References end(), ranges::find(), and openmsx::Pluggable::getName().
Referenced by openmsx::Connector::serialize().
CliComm & openmsx::PluggingController::getCliComm | ( | ) |
Access to the MSX specific CliComm, so that Connectors can get it.
Definition at line 223 of file PluggingController.cc.
References openmsx::MSXMotherBoard::getMSXCliComm().
Referenced by openmsx::PluggableFactory::createAll(), registerConnector(), openmsx::Connector::serialize(), and unregisterConnector().
|
inline |
Definition at line 46 of file PluggingController.hh.
EmuTime::param openmsx::PluggingController::getCurrentTime | ( | ) | const |
Convenience method: get current time.
Definition at line 228 of file PluggingController.cc.
References openmsx::MSXMotherBoard::getCurrentTime().
Referenced by openmsx::JoyTap::serialize().
|
inline |
Definition at line 47 of file PluggingController.hh.
Referenced by openmsx::ImGuiConnector::showMenu().
void openmsx::PluggingController::registerConnector | ( | Connector & | connector | ) |
Connectors must be (un)registered.
Definition at line 49 of file PluggingController.cc.
References openmsx::CliComm::CONNECTOR, getCliComm(), openmsx::Connector::getName(), and openmsx::CliComm::update().
Referenced by openmsx::Connector::Connector().
void openmsx::PluggingController::registerPluggable | ( | std::unique_ptr< Pluggable > | pluggable | ) |
Add a Pluggable to the registry.
Definition at line 63 of file PluggingController.cc.
Referenced by openmsx::CassettePort::CassettePort(), and openmsx::PluggableFactory::createAll().
void openmsx::PluggingController::unregisterConnector | ( | Connector & | connector | ) |
Definition at line 55 of file PluggingController.cc.
References openmsx::CliComm::CONNECTOR, getCliComm(), openmsx::MSXMotherBoard::getCurrentTime(), openmsx::Connector::getName(), move_pop_back(), rfind_unguarded(), openmsx::Connector::unplug(), and openmsx::CliComm::update().
Referenced by openmsx::Connector::~Connector().