openMSX
Public Member Functions | Static Public Member Functions | Friends | List of all members
openmsx::HardwareConfig Class Reference

#include <HardwareConfig.hh>

Inheritance diagram for openmsx::HardwareConfig:
Inheritance graph
[legend]
Collaboration diagram for openmsx::HardwareConfig:
Collaboration graph
[legend]

Public Member Functions

 HardwareConfig (MSXMotherBoard &motherBoard, const std::string &hwName)
 
 ~HardwareConfig ()
 
MSXMotherBoardgetMotherBoard () const
 
const FileContextgetFileContext () const
 
void setFileContext (std::unique_ptr< FileContext > context)
 
const XMLElementgetConfig () const
 
const std::string & getName () const
 
void parseSlots ()
 
void createDevices ()
 
void testRemove () const
 Checks whether this HardwareConfig can be deleted. More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Static Public Member Functions

static XMLElement loadConfig (string_ref type, string_ref name)
 
static std::unique_ptr
< HardwareConfig
createMachineConfig (MSXMotherBoard &motherBoard, const std::string &machineName)
 
static std::unique_ptr
< HardwareConfig
createExtensionConfig (MSXMotherBoard &motherBoard, const std::string &extensionName, const std::string &slotname)
 
static std::unique_ptr
< HardwareConfig
createRomConfig (MSXMotherBoard &motherBoard, const std::string &romfile, const std::string &slotname, const std::vector< std::string > &options)
 

Friends

struct SerializeConstructorArgs< HardwareConfig >
 

Detailed Description

Definition at line 18 of file HardwareConfig.hh.

Constructor & Destructor Documentation

openmsx::HardwareConfig::HardwareConfig ( MSXMotherBoard motherBoard,
const std::string &  hwName 
)

Definition at line 122 of file HardwareConfig.cc.

References openmsx::MSXMotherBoard::getUserName(), and xrange().

openmsx::HardwareConfig::~HardwareConfig ( )

Member Function Documentation

void openmsx::HardwareConfig::createDevices ( )

Definition at line 298 of file HardwareConfig.cc.

Referenced by serialize().

unique_ptr< HardwareConfig > openmsx::HardwareConfig::createExtensionConfig ( MSXMotherBoard motherBoard,
const std::string &  extensionName,
const std::string &  slotname 
)
static

Definition at line 38 of file HardwareConfig.cc.

Referenced by openmsx::MSXMotherBoard::Impl::loadExtension().

unique_ptr< HardwareConfig > openmsx::HardwareConfig::createMachineConfig ( MSXMotherBoard motherBoard,
const std::string &  machineName 
)
static

Definition at line 30 of file HardwareConfig.cc.

Referenced by openmsx::MSXMotherBoard::Impl::loadMachine().

unique_ptr< HardwareConfig > openmsx::HardwareConfig::createRomConfig ( MSXMotherBoard motherBoard,
const std::string &  romfile,
const std::string &  slotname,
const std::vector< std::string > &  options 
)
static
const XMLElement& openmsx::HardwareConfig::getConfig ( ) const
inline
const FileContext & openmsx::HardwareConfig::getFileContext ( ) const

Definition at line 195 of file HardwareConfig.cc.

Referenced by openmsx::DeviceConfig::getFileContext().

MSXMotherBoard& openmsx::HardwareConfig::getMotherBoard ( ) const
inline
const string & openmsx::HardwareConfig::getName ( ) const

Definition at line 364 of file HardwareConfig.cc.

Referenced by openmsx::MSXMotherBoard::Impl::removeExtension().

XMLElement openmsx::HardwareConfig::loadConfig ( string_ref  type,
string_ref  name 
)
static

Definition at line 209 of file HardwareConfig.cc.

Referenced by openmsx::ConfigInfo::execute().

void openmsx::HardwareConfig::parseSlots ( )
template<typename Archive >
void openmsx::HardwareConfig::serialize ( Archive &  ar,
unsigned  version 
)
void openmsx::HardwareConfig::setFileContext ( std::unique_ptr< FileContext context)

Definition at line 199 of file HardwareConfig.cc.

void openmsx::HardwareConfig::testRemove ( ) const

Friends And Related Function Documentation

friend struct SerializeConstructorArgs< HardwareConfig >
friend

Definition at line 85 of file HardwareConfig.hh.


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