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

#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 HardwareConfiggetHardwareConfig () const
 
const XMLElementgetXML () const
 
XMLElementgetPrimary () const
 
XMLElementgetSecondary () const
 
const FileContextgetFileContext () const
 
MSXMotherBoardgetMotherBoard () const
 
MSXCliCommgetCliComm () const
 
CommandControllergetCommandController () const
 
SchedulergetScheduler () const
 
ReactorgetReactor () const
 
GlobalSettingsgetGlobalSettings () const
 
XMLDocumentgetXMLDocument ()
 
const XMLElementgetChild (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 XMLElementfindChild (std::string_view name) const
 
std::string_view getAttributeValue (std::string_view attName) const
 
int getAttributeValueAsInt (std::string_view attName, int defaultValue) const
 

Detailed Description

Definition at line 20 of file DeviceConfig.hh.

Constructor & Destructor Documentation

◆ DeviceConfig() [1/5]

openmsx::DeviceConfig::DeviceConfig ( )
default

◆ DeviceConfig() [2/5]

openmsx::DeviceConfig::DeviceConfig ( const HardwareConfig hwConf_,
const XMLElement devConf_ 
)
inline

Definition at line 24 of file DeviceConfig.hh.

◆ DeviceConfig() [3/5]

openmsx::DeviceConfig::DeviceConfig ( const HardwareConfig hwConf_,
const XMLElement devConf_,
const XMLElement primary_,
const XMLElement secondary_ 
)
inline

Definition at line 28 of file DeviceConfig.hh.

◆ DeviceConfig() [4/5]

openmsx::DeviceConfig::DeviceConfig ( const DeviceConfig other,
const XMLElement devConf_ 
)
inline

Definition at line 34 of file DeviceConfig.hh.

◆ DeviceConfig() [5/5]

openmsx::DeviceConfig::DeviceConfig ( const DeviceConfig other,
const XMLElement devConf_ 
)
inline

Definition at line 38 of file DeviceConfig.hh.

Member Function Documentation

◆ findChild()

const XMLElement * openmsx::DeviceConfig::findChild ( std::string_view  name) const

◆ getAttributeValue()

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().

◆ getAttributeValueAsInt()

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().

◆ getChild()

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().

◆ getChildData() [1/2]

std::string_view openmsx::DeviceConfig::getChildData ( std::string_view  name) const

◆ getChildData() [2/2]

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().

◆ getChildDataAsBool()

bool openmsx::DeviceConfig::getChildDataAsBool ( std::string_view  name,
bool  defaultValue = false 
) const

◆ getChildDataAsInt()

int openmsx::DeviceConfig::getChildDataAsInt ( std::string_view  name,
int  defaultValue 
) const

◆ getCliComm()

MSXCliComm & openmsx::DeviceConfig::getCliComm ( ) const

◆ getCommandController()

CommandController & openmsx::DeviceConfig::getCommandController ( ) const

◆ getFileContext()

const FileContext & openmsx::DeviceConfig::getFileContext ( ) const

◆ getGlobalSettings()

GlobalSettings & openmsx::DeviceConfig::getGlobalSettings ( ) const

Definition at line 34 of file DeviceConfig.cc.

References openmsx::Reactor::getGlobalSettings(), and getReactor().

◆ getHardwareConfig()

const HardwareConfig & openmsx::DeviceConfig::getHardwareConfig ( ) const
inline

◆ getMotherBoard()

MSXMotherBoard & openmsx::DeviceConfig::getMotherBoard ( ) const

◆ getPrimary()

XMLElement * openmsx::DeviceConfig::getPrimary ( ) const
inline

Definition at line 52 of file DeviceConfig.hh.

◆ getReactor()

Reactor & openmsx::DeviceConfig::getReactor ( ) const

◆ getScheduler()

Scheduler & openmsx::DeviceConfig::getScheduler ( ) const

Definition at line 26 of file DeviceConfig.cc.

References getMotherBoard(), and openmsx::MSXMotherBoard::getScheduler().

◆ getSecondary()

XMLElement * openmsx::DeviceConfig::getSecondary ( ) const
inline

Definition at line 56 of file DeviceConfig.hh.

◆ getXML()

const XMLElement * openmsx::DeviceConfig::getXML ( ) const
inline

◆ getXMLDocument()

XMLDocument & openmsx::DeviceConfig::getXMLDocument ( )

Definition at line 38 of file DeviceConfig.cc.

References getXMLDocument().

Referenced by getXMLDocument().


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