|
openMSX
|
#include <HardwareConfig.hh>


Public Member Functions | |
| HardwareConfig (MSXMotherBoard &motherBoard, const std::string &hwName) | |
| ~HardwareConfig () | |
| MSXMotherBoard & | getMotherBoard () const |
| const FileContext & | getFileContext () const |
| void | setFileContext (std::unique_ptr< FileContext > context) |
| const XMLElement & | getConfig () const |
| const std::string & | getName () const |
| void | parseSlots () |
| void | createDevices () |
| void | testRemove () const |
| Checks whether this HardwareConfig can be deleted. | |
| template<typename Archive > | |
| void | serialize (Archive &ar, unsigned version) |
Static Public Member Functions | |
| static XMLElement | loadConfig (string_ref type, string_ref name) |
| static std::unique_ptr < HardwareConfig > | createMachineConfig (MSXMotherBoard &motherBoard, const std::string &machineName) |
| static std::unique_ptr < HardwareConfig > | createExtensionConfig (MSXMotherBoard &motherBoard, const std::string &extensionName) |
| static std::unique_ptr < HardwareConfig > | createRomConfig (MSXMotherBoard &motherBoard, const std::string &romfile, const std::string &slotname, const std::vector< std::string > &options) |
Friends | |
| struct | SerializeConstructorArgs< HardwareConfig > |
Additional Inherited Members |
Definition at line 18 of file HardwareConfig.hh.
| openmsx::HardwareConfig::HardwareConfig | ( | MSXMotherBoard & | motherBoard, |
| const std::string & | hwName | ||
| ) |
Definition at line 132 of file HardwareConfig.cc.
References openmsx::MSXMotherBoard::getUserName(), and xrange().
| openmsx::HardwareConfig::~HardwareConfig | ( | ) |
Definition at line 147 of file HardwareConfig.cc.
References openmsx::MSXMotherBoard::freeUserName(), openmsx::MSXMotherBoard::getCPUInterface(), openmsx::MSXException::getMessage(), openmsx::MSXMotherBoard::getSlotManager(), openmsx::MSXMotherBoard::removeDevice(), openmsx::CartridgeSlotManager::removeExternalSlot(), testRemove(), UNREACHABLE, openmsx::MSXCPUInterface::unsetExpanded(), and xrange().
| void openmsx::HardwareConfig::createDevices | ( | ) |
Definition at line 308 of file HardwareConfig.cc.
Referenced by serialize().
|
static |
Definition at line 38 of file HardwareConfig.cc.
Referenced by openmsx::MSXMotherBoard::Impl::loadExtension().
|
static |
Definition at line 30 of file HardwareConfig.cc.
Referenced by openmsx::MSXMotherBoard::Impl::loadMachine().
|
static |
Definition at line 47 of file HardwareConfig.cc.
References openmsx::XMLElement::addAttribute(), openmsx::XMLElement::addChild(), openmsx::FileOperations::getAbsolutePath(), openmsx::FileOperations::getFilename(), openmsx::FileOperations::isRegularFile(), openmsx::XMLElement::setName(), and openmsx::XMLElement.
Referenced by openmsx::CartCmd::execute().
|
inline |
Definition at line 39 of file HardwareConfig.hh.
Referenced by openmsx::MSXMotherBoard::Impl::getJoystickPort(), openmsx::MSXMotherBoard::Impl::getRenShaTurbo(), and openmsx::MSXMotherBoard::Impl::isTurboR().
| const FileContext & openmsx::HardwareConfig::getFileContext | ( | ) | const |
Definition at line 205 of file HardwareConfig.cc.
Referenced by openmsx::DeviceConfig::getFileContext().
|
inline |
Definition at line 34 of file HardwareConfig.hh.
Referenced by openmsx::DeviceConfig::getMotherBoard(), and openmsx::MSXDevice::getMotherBoard().
| const string & openmsx::HardwareConfig::getName | ( | ) | const |
Definition at line 374 of file HardwareConfig.cc.
Referenced by openmsx::MSXMotherBoard::Impl::removeExtension().
|
static |
Definition at line 219 of file HardwareConfig.cc.
Referenced by openmsx::ConfigInfo::execute().
| void openmsx::HardwareConfig::parseSlots | ( | ) |
Definition at line 266 of file HardwareConfig.cc.
References openmsx::MSXMotherBoard::getCPUInterface(), openmsx::CartridgeSlotManager::getSlotNum(), openmsx::MSXCPUInterface::isExpanded(), openmsx::XMLElement::setAttribute(), and StringOp::toString().
Referenced by serialize().
| void openmsx::HardwareConfig::serialize | ( | Archive & | ar, |
| unsigned | version | ||
| ) |
Definition at line 396 of file HardwareConfig.cc.
References createDevices(), openmsx::XMLElement::getLastSerializedFileContext(), openmsx::MSXMotherBoard::getMachineConfig(), parseSlots(), and openmsx::MSXMotherBoard::setMachineConfig().
| void openmsx::HardwareConfig::setFileContext | ( | std::unique_ptr< FileContext > | context | ) |
Definition at line 209 of file HardwareConfig.cc.
| void openmsx::HardwareConfig::testRemove | ( | ) | const |
Checks whether this HardwareConfig can be deleted.
Throws an exception if not.
Definition at line 181 of file HardwareConfig.cc.
References openmsx::MSXMotherBoard::getCPUInterface(), openmsx::MSXMotherBoard::getSlotManager(), openmsx::CartridgeSlotManager::testRemoveExternalSlot(), openmsx::MSXCPUInterface::testUnsetExpanded(), and xrange().
Referenced by openmsx::MSXMotherBoard::Impl::removeExtension(), and ~HardwareConfig().
|
friend |
Definition at line 84 of file HardwareConfig.hh.
1.8.1.2