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

#include <HardwareConfig.hh>

Public Member Functions

 HardwareConfig (const HardwareConfig &)=delete
HardwareConfigoperator= (const HardwareConfig &)=delete
 HardwareConfig (MSXMotherBoard &motherBoard, std::string hwName)
 ~HardwareConfig ()
MSXMotherBoardgetMotherBoard () const
const FileContextgetFileContext () const
void setFileContext (FileContext &&ctxt)
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< HardwareConfigcreateMachineConfig (MSXMotherBoard &motherBoard, const std::string &machineName)
static std::unique_ptr< HardwareConfigcreateExtensionConfig (MSXMotherBoard &motherBoard, string_ref extensionName, string_ref slotname)
static std::unique_ptr< HardwareConfigcreateRomConfig (MSXMotherBoard &motherBoard, string_ref romfile, string_ref slotname, array_ref< TclObject > options)


struct SerializeConstructorArgs< HardwareConfig >

Detailed Description

Definition at line 20 of file HardwareConfig.hh.

Constructor & Destructor Documentation

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

Definition at line 123 of file

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

openmsx::HardwareConfig::~HardwareConfig ( )

Member Function Documentation

void openmsx::HardwareConfig::createDevices ( )

Definition at line 289 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 37 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 29 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 41 of file HardwareConfig.hh.

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

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

Definition at line 45 of file HardwareConfig.hh.

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

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

Definition at line 201 of file

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

HardwareConfig& openmsx::HardwareConfig::operator= ( const HardwareConfig )
void openmsx::HardwareConfig::parseSlots ( )
template<typename Archive >
void openmsx::HardwareConfig::serialize ( Archive &  ar,
unsigned  version 
void openmsx::HardwareConfig::setFileContext ( FileContext &&  ctxt)

Definition at line 42 of file HardwareConfig.hh.

void openmsx::HardwareConfig::testRemove ( ) const

Friends And Related Function Documentation

friend struct SerializeConstructorArgs< HardwareConfig >

Definition at line 90 of file HardwareConfig.hh.

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