openMSX
Main Page
Namespaces
Classes
Files
File List
File Members
config
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
9
const
FileContext
&
DeviceConfig::getFileContext
()
const
10
{
11
return
getHardwareConfig
().
getFileContext
();
12
}
13
MSXMotherBoard
&
DeviceConfig::getMotherBoard
()
const
14
{
15
return
getHardwareConfig
().
getMotherBoard
();
16
}
17
18
CliComm
&
DeviceConfig::getCliComm
()
const
19
{
20
return
getMotherBoard
().
getMSXCliComm
();
21
}
22
CommandController
&
DeviceConfig::getCommandController
()
const
23
{
24
return
getMotherBoard
().
getCommandController
();
25
}
26
Scheduler
&
DeviceConfig::getScheduler
()
const
27
{
28
return
getMotherBoard
().
getScheduler
();
29
}
30
Reactor
&
DeviceConfig::getReactor
()
const
31
{
32
return
getMotherBoard
().
getReactor
();
33
}
34
GlobalSettings
&
DeviceConfig::getGlobalSettings
()
const
35
{
36
return
getReactor
().
getGlobalSettings
();
37
}
38
39
const
XMLElement
&
DeviceConfig::getChild
(
string_ref
name)
const
40
{
41
return
getXML
()->
getChild
(name);
42
}
43
const
std::string&
DeviceConfig::getChildData
(
string_ref
name)
const
44
{
45
return
getXML
()->
getChildData
(name);
46
}
47
string_ref
DeviceConfig::getChildData
(
string_ref
name,
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
}
56
bool
DeviceConfig::getChildDataAsBool
(
string_ref
name,
57
bool
defaultValue)
const
58
{
59
return
getXML
()->
getChildDataAsBool
(name, defaultValue);
60
}
61
const
XMLElement
*
DeviceConfig::findChild
(
string_ref
name)
const
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
Generated on Mon Jun 17 2013 22:18:14 for openMSX by
1.8.1.2