openMSX
Public Member Functions | List of all members
openmsx::Rom Class Referencefinal

#include <Rom.hh>

Public Member Functions

 Rom (std::string name, std::string description, const DeviceConfig &config, const std::string &id={})
 
 Rom (Rom &&other) noexcept
 
 ~Rom ()
 
const byteoperator[] (unsigned address) const
 
unsigned getSize () const
 
std::string getFilename () const
 
const std::string & getName () const
 
const std::string & getDescription () const
 
const Sha1SumgetOriginalSHA1 () const
 
void addPadding (unsigned newSize, byte filler=0xff)
 

Detailed Description

Definition at line 20 of file Rom.hh.

Constructor & Destructor Documentation

◆ Rom() [1/2]

openmsx::Rom::Rom ( std::string  name,
std::string  description,
const DeviceConfig config,
const std::string &  id = {} 
)

◆ Rom() [2/2]

openmsx::Rom::Rom ( Rom &&  other)
noexcept

Definition at line 337 of file Rom.cc.

References ~Rom().

◆ ~Rom()

openmsx::Rom::~Rom ( )
default

Referenced by Rom().

Member Function Documentation

◆ addPadding()

void openmsx::Rom::addPadding ( unsigned  newSize,
byte  filler = 0xff 
)

◆ getDescription()

const std::string& openmsx::Rom::getDescription ( ) const
inline

Definition at line 36 of file Rom.hh.

References addPadding(), gl::context, and getOriginalSHA1().

Referenced by openmsx::RomDebuggable::getDescription().

◆ getFilename()

string openmsx::Rom::getFilename ( ) const

Definition at line 352 of file Rom.cc.

References openmsx::File::getURL(), and openmsx::File::is_open().

Referenced by openmsx::MSXRom::getExtraDeviceInfo(), and getSize().

◆ getName()

const std::string& openmsx::Rom::getName ( ) const
inline

◆ getOriginalSHA1()

const Sha1Sum & openmsx::Rom::getOriginalSHA1 ( ) const

◆ getSize()

unsigned openmsx::Rom::getSize ( ) const
inline

◆ operator[]()

const byte& openmsx::Rom::operator[] ( unsigned  address) const
inline

Definition at line 28 of file Rom.hh.


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