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

#include <DeviceConfig.hh>

Public Member Functions

 DeviceConfig ()
 
 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
 
CliCommgetCliComm () const
 
CommandControllergetCommandController () const
 
SchedulergetScheduler () const
 
ReactorgetReactor () const
 
GlobalSettingsgetGlobalSettings () const
 
const XMLElementgetChild (string_ref name) const
 
const std::string & getChildData (string_ref name) const
 
string_ref getChildData (string_ref name, string_ref defaultValue) const
 
int getChildDataAsInt (string_ref name, int defaultValue=0) const
 
bool getChildDataAsBool (string_ref name, bool defaultValue=false) const
 
const XMLElementfindChild (string_ref name) const
 
const std::string & getAttribute (string_ref attName) const
 
int getAttributeAsInt (string_ref attName, int defaultValue=0) const
 

Detailed Description

Definition at line 19 of file DeviceConfig.hh.

Constructor & Destructor Documentation

◆ DeviceConfig() [1/5]

openmsx::DeviceConfig::DeviceConfig ( )
inline

Definition at line 22 of file DeviceConfig.hh.

◆ DeviceConfig() [2/5]

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

Definition at line 27 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 32 of file DeviceConfig.hh.

◆ DeviceConfig() [4/5]

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

Definition at line 38 of file DeviceConfig.hh.

◆ DeviceConfig() [5/5]

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

Definition at line 43 of file DeviceConfig.hh.

Member Function Documentation

◆ findChild()

const XMLElement * openmsx::DeviceConfig::findChild ( string_ref  name) const

◆ getAttribute()

const std::string & openmsx::DeviceConfig::getAttribute ( string_ref  attName) const

Definition at line 65 of file DeviceConfig.cc.

References openmsx::XMLElement::getAttribute(), and getXML().

Referenced by openmsx::RomFactory::create(), and getSecondary().

◆ getAttributeAsInt()

int openmsx::DeviceConfig::getAttributeAsInt ( string_ref  attName,
int  defaultValue = 0 
) const

Definition at line 69 of file DeviceConfig.cc.

References openmsx::XMLElement::getAttributeAsInt(), and getXML().

Referenced by getSecondary().

◆ getChild()

const XMLElement & openmsx::DeviceConfig::getChild ( string_ref  name) const

Definition at line 39 of file DeviceConfig.cc.

References openmsx::XMLElement::getChild(), and getXML().

Referenced by getSecondary(), and openmsx::SoundDevice::registerSound().

◆ getChildData() [1/2]

const std::string & openmsx::DeviceConfig::getChildData ( string_ref  name) const

◆ getChildData() [2/2]

string_ref openmsx::DeviceConfig::getChildData ( string_ref  name,
string_ref  defaultValue 
) const

Definition at line 47 of file DeviceConfig.cc.

References openmsx::XMLElement::getChildData(), and getXML().

◆ getChildDataAsBool()

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

◆ getChildDataAsInt()

int openmsx::DeviceConfig::getChildDataAsInt ( string_ref  name,
int  defaultValue = 0 
) const

◆ getCliComm()

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

◆ getCommandController()

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

Definition at line 22 of file DeviceConfig.cc.

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

Referenced by getSecondary().

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

Referenced by getSecondary().

◆ getHardwareConfig()

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

◆ getMotherBoard()

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

◆ getPrimary()

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

Definition at line 58 of file DeviceConfig.hh.

Referenced by openmsx::MSXDevice::getPluggingController().

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

Referenced by getSecondary().

◆ getSecondary()

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

◆ getXML()

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

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