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
Collaboration diagram for openmsx::HardwareConfig:
Collaboration graph

Public Member Functions

 HardwareConfig (MSXMotherBoard &motherBoard, 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, string_ref extensionName, string_ref slotname)
static std::unique_ptr
< HardwareConfig
createRomConfig (MSXMotherBoard &motherBoard, string_ref romfile, string_ref slotname, array_ref< TclObject > options)


struct SerializeConstructorArgs< HardwareConfig >

Detailed Description

Definition at line 21 of file HardwareConfig.hh.

Constructor & Destructor Documentation

openmsx::HardwareConfig::HardwareConfig ( MSXMotherBoard motherBoard,
std::string  hwName 

Definition at line 124 of file

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

openmsx::HardwareConfig::~HardwareConfig ( )

Member Function Documentation

void openmsx::HardwareConfig::createDevices ( )

Definition at line 296 of file

Referenced by openmsx::MSXMotherBoard::loadMachine(), and serialize().

unique_ptr< HardwareConfig > openmsx::HardwareConfig::createExtensionConfig ( MSXMotherBoard motherBoard,
string_ref  extensionName,
string_ref  slotname 

Definition at line 38 of file

References string_ref::str().

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

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

Definition at line 30 of file

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

unique_ptr< HardwareConfig > openmsx::HardwareConfig::createRomConfig ( MSXMotherBoard motherBoard,
string_ref  romfile,
string_ref  slotname,
array_ref< TclObject options 
const XMLElement& openmsx::HardwareConfig::getConfig ( ) const
const FileContext& openmsx::HardwareConfig::getFileContext ( ) const

Definition at line 39 of file HardwareConfig.hh.

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

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

Definition at line 43 of file HardwareConfig.hh.

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

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

Definition at line 207 of file

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 197 of file

void openmsx::HardwareConfig::testRemove ( ) const

Friends And Related Function Documentation

friend struct SerializeConstructorArgs< HardwareConfig >

Definition at line 88 of file HardwareConfig.hh.

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