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

#include <RomDatabase.hh>

Public Types

using RomDB = std::vector< std::pair< Sha1Sum, RomInfo > >

Public Member Functions

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

Detailed Description

Definition at line 14 of file RomDatabase.hh.

Member Typedef Documentation

◆ RomDB

using openmsx::RomDatabase::RomDB = std::vector<std::pair<Sha1Sum, RomInfo> >

Definition at line 17 of file RomDatabase.hh.

Constructor & Destructor Documentation

◆ RomDatabase()

openmsx::RomDatabase::RomDatabase ( CliComm cliComm)

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 615 of file

References ranges::lower_bound().

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

◆ getBufferStart()

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

Definition at line 26 of file RomDatabase.hh.

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

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