openMSX
|
#include <DeviceConfig.hh>
Public Member Functions | |
DeviceConfig ()=default | |
DeviceConfig (const HardwareConfig &hwConf_, const XMLElement &devConf_) | |
DeviceConfig (const HardwareConfig &hwConf_, const XMLElement &devConf_, const XMLElement *primary_, const XMLElement *secondary_) | |
DeviceConfig (const DeviceConfig &other, const XMLElement &devConf_) | |
DeviceConfig (const DeviceConfig &other, const XMLElement *devConf_) | |
const HardwareConfig & | getHardwareConfig () const |
const XMLElement * | getXML () const |
XMLElement * | getPrimary () const |
XMLElement * | getSecondary () const |
const FileContext & | getFileContext () const |
MSXMotherBoard & | getMotherBoard () const |
MSXCliComm & | getCliComm () const |
CommandController & | getCommandController () const |
Scheduler & | getScheduler () const |
Reactor & | getReactor () const |
GlobalSettings & | getGlobalSettings () const |
XMLDocument & | getXMLDocument () |
const XMLElement & | getChild (std::string_view name) const |
std::string_view | getChildData (std::string_view name) const |
std::string_view | getChildData (std::string_view name, std::string_view defaultValue) const |
int | getChildDataAsInt (std::string_view name, int defaultValue) const |
bool | getChildDataAsBool (std::string_view name, bool defaultValue=false) const |
const XMLElement * | findChild (std::string_view name) const |
std::string_view | getAttributeValue (std::string_view attName) const |
int | getAttributeValueAsInt (std::string_view attName, int defaultValue) const |
Definition at line 20 of file DeviceConfig.hh.
|
default |
|
inline |
Definition at line 24 of file DeviceConfig.hh.
|
inline |
Definition at line 28 of file DeviceConfig.hh.
|
inline |
Definition at line 34 of file DeviceConfig.hh.
|
inline |
Definition at line 38 of file DeviceConfig.hh.
const XMLElement * openmsx::DeviceConfig::findChild | ( | std::string_view | name | ) | const |
Definition at line 66 of file DeviceConfig.cc.
References openmsx::XMLElement::findChild(), and getXML().
Referenced by openmsx::BeerIDE::BeerIDE(), openmsx::MSXFDC::MSXFDC(), openmsx::MSXMidi::MSXMidi(), openmsx::MSXS1985::MSXS1985(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks(), openmsx::RomPlain::RomPlain(), openmsx::SunriseIDE::SunriseIDE(), and openmsx::VDP::VDP().
std::string_view openmsx::DeviceConfig::getAttributeValue | ( | std::string_view | attName | ) | const |
Definition at line 70 of file DeviceConfig.cc.
References openmsx::XMLElement::getAttributeValue(), and getXML().
Referenced by openmsx::RomFactory::create().
int openmsx::DeviceConfig::getAttributeValueAsInt | ( | std::string_view | attName, |
int | defaultValue | ||
) | const |
Definition at line 74 of file DeviceConfig.cc.
References openmsx::XMLElement::getAttributeValueAsInt(), and getXML().
const XMLElement & openmsx::DeviceConfig::getChild | ( | std::string_view | name | ) | const |
Definition at line 44 of file DeviceConfig.cc.
References openmsx::XMLElement::getChild(), and getXML().
Referenced by openmsx::SoundDevice::registerSound().
std::string_view openmsx::DeviceConfig::getChildData | ( | std::string_view | name | ) | const |
Definition at line 48 of file DeviceConfig.cc.
References openmsx::XMLElement::getChildData(), and getXML().
Referenced by openmsx::IDEDeviceFactory::create(), openmsx::RomFactory::create(), openmsx::Y8950PeripheryFactory::create(), openmsx::HD::HD(), openmsx::MSXAudio::MSXAudio(), openmsx::OptionalIRQ::OptionalIRQ(), and openmsx::VDP::VDP().
std::string_view openmsx::DeviceConfig::getChildData | ( | std::string_view | name, |
std::string_view | defaultValue | ||
) | const |
Definition at line 52 of file DeviceConfig.cc.
References openmsx::XMLElement::getChildData(), and getXML().
bool openmsx::DeviceConfig::getChildDataAsBool | ( | std::string_view | name, |
bool | defaultValue = false |
||
) | const |
Definition at line 61 of file DeviceConfig.cc.
References openmsx::XMLElement::getChildDataAsBool(), and getXML().
Referenced by openmsx::PioneerLDControl::PioneerLDControl(), openmsx::RomPanasonic::RomPanasonic(), and openmsx::YamahaSKW01::YamahaSKW01().
int openmsx::DeviceConfig::getChildDataAsInt | ( | std::string_view | name, |
int | defaultValue | ||
) | const |
Definition at line 57 of file DeviceConfig.cc.
References openmsx::XMLElement::getChildDataAsInt(), and getXML().
Referenced by openmsx::HD::HD(), openmsx::MSXFDC::MSXFDC(), openmsx::MSXS1985::MSXS1985(), openmsx::RomPanasonic::RomPanasonic(), and openmsx::VDP::VDP().
MSXCliComm & openmsx::DeviceConfig::getCliComm | ( | ) | const |
Definition at line 18 of file DeviceConfig.cc.
References getMotherBoard(), and openmsx::MSXMotherBoard::getMSXCliComm().
Referenced by openmsx::DeviceFactory::create(), openmsx::FirmwareSwitch::FirmwareSwitch(), openmsx::RomBlocks< BANK_SIZE_ >::RomBlocks(), and openmsx::FirmwareSwitch::~FirmwareSwitch().
CommandController & openmsx::DeviceConfig::getCommandController | ( | ) | const |
Definition at line 22 of file DeviceConfig.cc.
References openmsx::MSXMotherBoard::getCommandController(), and getMotherBoard().
const FileContext & openmsx::DeviceConfig::getFileContext | ( | ) | const |
Definition at line 9 of file DeviceConfig.cc.
References openmsx::HardwareConfig::getFileContext(), and getHardwareConfig().
Referenced by openmsx::FirmwareSwitch::FirmwareSwitch(), openmsx::HD::HD(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::Rom::Rom(), and openmsx::FirmwareSwitch::~FirmwareSwitch().
GlobalSettings & openmsx::DeviceConfig::getGlobalSettings | ( | ) | const |
Definition at line 34 of file DeviceConfig.cc.
References openmsx::Reactor::getGlobalSettings(), and getReactor().
|
inline |
Definition at line 43 of file DeviceConfig.hh.
Referenced by getFileContext(), openmsx::MSXDevice::getHardwareConfig(), and getMotherBoard().
MSXMotherBoard & openmsx::DeviceConfig::getMotherBoard | ( | ) | const |
Definition at line 13 of file DeviceConfig.cc.
References getHardwareConfig(), and openmsx::HardwareConfig::getMotherBoard().
Referenced by openmsx::RomFactory::create(), openmsx::DACSound8U::DACSound8U(), getCliComm(), getCommandController(), getReactor(), getScheduler(), openmsx::IDEHD::IDEHD(), openmsx::Rom::Rom(), and openmsx::YMF262::YMF262().
|
inline |
Definition at line 52 of file DeviceConfig.hh.
Reactor & openmsx::DeviceConfig::getReactor | ( | ) | const |
Definition at line 30 of file DeviceConfig.cc.
References getMotherBoard(), and openmsx::MSXMotherBoard::getReactor().
Referenced by openmsx::RomFactory::create(), and getGlobalSettings().
Scheduler & openmsx::DeviceConfig::getScheduler | ( | ) | const |
Definition at line 26 of file DeviceConfig.cc.
References getMotherBoard(), and openmsx::MSXMotherBoard::getScheduler().
|
inline |
Definition at line 56 of file DeviceConfig.hh.
|
inline |
Definition at line 48 of file DeviceConfig.hh.
Referenced by openmsx::DeviceFactory::create(), openmsx::IDEDeviceFactory::create(), openmsx::RomFactory::create(), findChild(), getAttributeValue(), getAttributeValueAsInt(), getChild(), getChildData(), getChildData(), getChildDataAsBool(), getChildDataAsInt(), openmsx::MSXDevice::getDeviceConfig(), openmsx::MB89352::MB89352(), openmsx::Rom::Rom(), and openmsx::WD33C93::WD33C93().
XMLDocument & openmsx::DeviceConfig::getXMLDocument | ( | ) |
Definition at line 38 of file DeviceConfig.cc.
References getXMLDocument().
Referenced by getXMLDocument().