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, 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)


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

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

openmsx::HardwareConfig::~HardwareConfig ( )

Member Function Documentation

void openmsx::HardwareConfig::createDevices ( )

Definition at line 298 of file

Referenced by serialize().

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

Definition at line 38 of file

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

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

Definition at line 30 of file

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 
const XMLElement& openmsx::HardwareConfig::getConfig ( ) const
const FileContext & openmsx::HardwareConfig::getFileContext ( ) const

Definition at line 195 of file

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

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

Definition at line 364 of file

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

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

Definition at line 209 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 199 of file

void openmsx::HardwareConfig::testRemove ( ) const

Friends And Related Function Documentation

friend struct SerializeConstructorArgs< HardwareConfig >

Definition at line 85 of file HardwareConfig.hh.

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