openMSX
Classes | Public Types | Public Member Functions | List of all members
openmsx::RomDatabase Class Reference

#include <RomDatabase.hh>

Classes

struct  Entry
 

Public Types

using RomDB = std::vector< Entry >
 

Public Member Functions

 RomDatabase (CliComm &cliComm)
 
const RomInfofetchRomInfo (const Sha1Sum &sha1sum) const
 Lookup an entry in the database by sha1sum.
 
const char * getBufferStart () const
 

Detailed Description

Definition at line 15 of file RomDatabase.hh.

Member Typedef Documentation

◆ RomDB

using openmsx::RomDatabase::RomDB = std::vector<Entry>

Definition at line 22 of file RomDatabase.hh.

Constructor & Destructor Documentation

◆ RomDatabase()

openmsx::RomDatabase::RomDatabase ( CliComm cliComm)
explicit

Member Function Documentation

◆ fetchRomInfo()

const RomInfo * openmsx::RomDatabase::fetchRomInfo ( const Sha1Sum sha1sum) const

Lookup an entry in the database by sha1sum.

Returns nullptr when no corresponding entry was found.

Definition at line 621 of file RomDatabase.cc.

References binary_find(), and openmsx::RomDatabase::Entry::sha1.

Referenced by openmsx::RomFactory::create(), and openmsx::ImGuiManager::paintImGui().

◆ getBufferStart()

const char * openmsx::RomDatabase::getBufferStart ( ) const
inline

Definition at line 31 of file RomDatabase.hh.

References openmsx::MemBuffer< T, ALIGNMENT >::data().


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