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

#include <RomInfo.hh>

Public Member Functions

 RomInfo (String32 title_, String32 year_, String32 company_, String32 country_, bool original_, String32 origType_, String32 remark_, RomType romType_, int genMSXid_)
 
const string_ref getTitle (const char *buf) const
 
const string_ref getYear (const char *buf) const
 
const string_ref getCompany (const char *buf) const
 
const string_ref getCountry (const char *buf) const
 
const string_ref getOrigType (const char *buf) const
 
const string_ref getRemark (const char *buf) const
 
RomType getRomType () const
 
bool getOriginal () const
 
int getGenMSXid () const
 

Static Public Member Functions

static RomType nameToRomType (string_ref name)
 
static string_ref romTypeToName (RomType type)
 
static std::vector< string_refgetAllRomTypes ()
 
static string_ref getDescription (RomType type)
 
static unsigned getBlockSize (RomType type)
 

Detailed Description

Definition at line 12 of file RomInfo.hh.

Constructor & Destructor Documentation

openmsx::RomInfo::RomInfo ( String32  title_,
String32  year_,
String32  company_,
String32  country_,
bool  original_,
String32  origType_,
String32  remark_,
RomType  romType_,
int  genMSXid_ 
)
inline

Definition at line 15 of file RomInfo.hh.

Member Function Documentation

vector< string_ref > openmsx::RomInfo::getAllRomTypes ( )
static
unsigned openmsx::RomInfo::getBlockSize ( RomType  type)
static

Definition at line 218 of file RomInfo.cc.

References begin(), and end().

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

const string_ref openmsx::RomInfo::getCompany ( const char *  buf) const
inline

Definition at line 38 of file RomInfo.hh.

References fromString32().

const string_ref openmsx::RomInfo::getCountry ( const char *  buf) const
inline

Definition at line 41 of file RomInfo.hh.

References fromString32().

string_ref openmsx::RomInfo::getDescription ( RomType  type)
static

Definition at line 209 of file RomInfo.cc.

References begin(), and end().

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

int openmsx::RomInfo::getGenMSXid ( ) const
inline

Definition at line 52 of file RomInfo.hh.

bool openmsx::RomInfo::getOriginal ( ) const
inline

Definition at line 51 of file RomInfo.hh.

const string_ref openmsx::RomInfo::getOrigType ( const char *  buf) const
inline

Definition at line 44 of file RomInfo.hh.

References fromString32().

const string_ref openmsx::RomInfo::getRemark ( const char *  buf) const
inline

Definition at line 47 of file RomInfo.hh.

References fromString32().

RomType openmsx::RomInfo::getRomType ( ) const
inline

Definition at line 50 of file RomInfo.hh.

Referenced by openmsx::RomFactory::create().

const string_ref openmsx::RomInfo::getTitle ( const char *  buf) const
inline

Definition at line 32 of file RomInfo.hh.

References fromString32().

const string_ref openmsx::RomInfo::getYear ( const char *  buf) const
inline

Definition at line 35 of file RomInfo.hh.

References fromString32().

RomType openmsx::RomInfo::nameToRomType ( string_ref  name)
static
string_ref openmsx::RomInfo::romTypeToName ( RomType  type)
static

Definition at line 187 of file RomInfo.cc.

References UNREACHABLE.

Referenced by openmsx::RomFactory::create().


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