// $Id: RS232Connector.cc 4836 2005-11-11 20:53:06Z m9710797 $ #include "RS232Connector.hh" #include "DummyRS232Device.hh" #include "PluggingController.hh" namespace openmsx { RS232Connector::RS232Connector(PluggingController& pluggingController_, const std::string &name) : Connector(name, std::auto_ptr(new DummyRS232Device())) , pluggingController(pluggingController_) { pluggingController.registerConnector(*this); } RS232Connector::~RS232Connector() { pluggingController.unregisterConnector(*this); } const std::string& RS232Connector::getDescription() const { static const std::string desc("Serial RS232 connector."); return desc; } const std::string& RS232Connector::getClass() const { static const std::string className("RS232"); return className; } RS232Device& RS232Connector::getPlugged() const { return static_cast(*plugged); } } // namespace openmsx