openMSX
DeviceConfig.cc
Go to the documentation of this file.
1 #include "DeviceConfig.hh"
2 #include "XMLElement.hh"
3 #include "HardwareConfig.hh"
4 #include "MSXMotherBoard.hh"
5 #include "Reactor.hh"
6 
7 namespace openmsx {
8 
10 {
12 }
14 {
16 }
17 
19 {
20  return getMotherBoard().getMSXCliComm();
21 }
23 {
25 }
27 {
28  return getMotherBoard().getScheduler();
29 }
31 {
32  return getMotherBoard().getReactor();
33 }
35 {
36  return getReactor().getGlobalSettings();
37 }
38 
40 {
41  return getXML()->getChild(name);
42 }
43 const std::string& DeviceConfig::getChildData(string_ref name) const
44 {
45  return getXML()->getChildData(name);
46 }
48  string_ref defaultValue) const
49 {
50  return getXML()->getChildData(name, defaultValue);
51 }
52 int DeviceConfig::getChildDataAsInt(string_ref name, int defaultValue) const
53 {
54  return getXML()->getChildDataAsInt(name, defaultValue);
55 }
57  bool defaultValue) const
58 {
59  return getXML()->getChildDataAsBool(name, defaultValue);
60 }
62 {
63  return getXML()->findChild(name);
64 }
65 const std::string& DeviceConfig::getAttribute(string_ref attName) const
66 {
67  return getXML()->getAttribute(attName);
68 }
69 int DeviceConfig::getAttributeAsInt(string_ref attName, int defaultValue) const
70 {
71  return getXML()->getAttributeAsInt(attName, defaultValue);
72 }
73 
74 } // namespace openmsx