openMSX
Classes | Public Member Functions | List of all members
openmsx::PluggingController Class Reference

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. More...
 
void unregisterConnector (Connector &connector)
 
ConnectorfindConnector (string_view name) const
 Return the Connector with given name or nullptr if there is none with this name. More...
 
void registerPluggable (std::unique_ptr< Pluggable > pluggable)
 Add a Pluggable to the registry. More...
 
PluggablefindPluggable (string_view name) const
 Return the Pluggable with given name or nullptr if there is none with this name. More...
 
CliCommgetCliComm ()
 Access to the MSX specific CliComm, so that Connectors can get it. More...
 
EmuTime::param getCurrentTime () const
 Convenience method: get current time. More...
 

Detailed Description

Central administration of Connectors and Pluggables.

Definition at line 21 of file PluggingController.hh.

Constructor & Destructor Documentation

◆ PluggingController()

openmsx::PluggingController::PluggingController ( MSXMotherBoard motherBoard)
explicit

Definition at line 21 of file PluggingController.cc.

References openmsx::PluggableFactory::createAll().

◆ ~PluggingController()

openmsx::PluggingController::~PluggingController ( )

Definition at line 38 of file PluggingController.cc.

Member Function Documentation

◆ findConnector()

Connector * openmsx::PluggingController::findConnector ( string_view  name) const

Return the Connector with given name or nullptr if there is none with this name.

Definition at line 208 of file PluggingController.cc.

◆ findPluggable()

Pluggable * openmsx::PluggingController::findPluggable ( string_view  name) const

Return the Pluggable with given name or nullptr if there is none with this name.

Definition at line 226 of file PluggingController.cc.

Referenced by openmsx::Connector::serialize().

◆ getCliComm()

CliComm & openmsx::PluggingController::getCliComm ( )

Access to the MSX specific CliComm, so that Connectors can get it.

Definition at line 244 of file PluggingController.cc.

References openmsx::MSXMotherBoard::getMSXCliComm().

Referenced by openmsx::PluggableFactory::createAll(), registerConnector(), openmsx::Connector::serialize(), and unregisterConnector().

◆ getCurrentTime()

EmuTime::param openmsx::PluggingController::getCurrentTime ( ) const

Convenience method: get current time.

Definition at line 249 of file PluggingController.cc.

References openmsx::MSXMotherBoard::getCurrentTime(), OUTER, and array_ref< T >::size().

Referenced by openmsx::JoyTap::serialize().

◆ registerConnector()

void openmsx::PluggingController::registerConnector ( Connector connector)

Connectors must be (un)registered.

Definition at line 50 of file PluggingController.cc.

References openmsx::CliComm::CONNECTOR, getCliComm(), openmsx::Connector::getName(), and openmsx::CliComm::update().

Referenced by openmsx::Connector::Connector().

◆ registerPluggable()

void openmsx::PluggingController::registerPluggable ( std::unique_ptr< Pluggable pluggable)

◆ unregisterConnector()

void openmsx::PluggingController::unregisterConnector ( Connector connector)

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