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

#include <RomInfo.hh>

Classes

struct  RomTypeInfo
 

Public Member Functions

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

Static Public Member Functions

static RomType nameToRomType (std::string_view name)
 
static std::string_view romTypeToName (RomType type)
 
static std::string_view getDescription (RomType type)
 
static unsigned getBlockSize (RomType type)
 
static auto getAllRomTypes ()
 
static const array_with_enum_index< RomType, RomInfo::RomTypeInfo > & getRomTypeInfo ()
 

Detailed Description

Definition at line 17 of file RomInfo.hh.

Constructor & Destructor Documentation

◆ RomInfo()

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

Definition at line 29 of file RomInfo.hh.

Member Function Documentation

◆ getAllRomTypes()

static auto openmsx::RomInfo::getAllRomTypes ( )
inlinestatic

◆ getBlockSize()

unsigned openmsx::RomInfo::getBlockSize ( RomType  type)
static

Definition at line 201 of file RomInfo.cc.

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

◆ getCompany()

std::string_view openmsx::RomInfo::getCompany ( const char *  buf) const
inline

Definition at line 52 of file RomInfo.hh.

References fromString32().

Referenced by openmsx::SoftwareInfoTopic::execute(), and openmsx::ImGuiMedia::printDatabase().

◆ getCountry()

std::string_view openmsx::RomInfo::getCountry ( const char *  buf) const
inline

Definition at line 55 of file RomInfo.hh.

References fromString32().

Referenced by openmsx::SoftwareInfoTopic::execute(), and openmsx::ImGuiMedia::printDatabase().

◆ getDescription()

std::string_view openmsx::RomInfo::getDescription ( RomType  type)
static

Definition at line 196 of file RomInfo.cc.

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

◆ getGenMSXid()

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

Definition at line 66 of file RomInfo.hh.

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

◆ getOriginal()

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

◆ getOrigType()

std::string_view openmsx::RomInfo::getOrigType ( const char *  buf) const
inline

Definition at line 58 of file RomInfo.hh.

References fromString32().

Referenced by openmsx::SoftwareInfoTopic::execute(), and openmsx::ImGuiMedia::printDatabase().

◆ getRemark()

std::string_view openmsx::RomInfo::getRemark ( const char *  buf) const
inline

Definition at line 61 of file RomInfo.hh.

References fromString32().

Referenced by openmsx::SoftwareInfoTopic::execute(), and openmsx::ImGuiMedia::printDatabase().

◆ getRomType()

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

◆ getRomTypeInfo()

const array_with_enum_index< RomType, RomInfo::RomTypeInfo > & openmsx::RomInfo::getRomTypeInfo ( )
static

Definition at line 113 of file RomInfo.cc.

Referenced by getAllRomTypes().

◆ getTitle()

std::string_view openmsx::RomInfo::getTitle ( const char *  buf) const
inline

Definition at line 46 of file RomInfo.hh.

References fromString32().

Referenced by openmsx::SoftwareInfoTopic::execute(), and openmsx::ImGuiMedia::printDatabase().

◆ getYear()

std::string_view openmsx::RomInfo::getYear ( const char *  buf) const
inline

Definition at line 49 of file RomInfo.hh.

References fromString32().

Referenced by openmsx::SoftwareInfoTopic::execute(), and openmsx::ImGuiMedia::printDatabase().

◆ nameToRomType()

RomType openmsx::RomInfo::nameToRomType ( std::string_view  name)
static

◆ romTypeToName()

std::string_view openmsx::RomInfo::romTypeToName ( RomType  type)
static

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