Classes | Public Types | Public Member Functions | List of all members
openmsx::FilePool Class Referencefinal

#include <FilePool.hh>

Inheritance diagram for openmsx::FilePool:
Inheritance graph
Collaboration diagram for openmsx::FilePool:
Collaboration graph

Public Types

enum  FileType { SYSTEM_ROM = 1, ROM = 2, DISK = 4, TAPE = 8 }

Public Member Functions

 FilePool (CommandController &controler, Reactor &reactor)
 ~FilePool ()
File getFile (FileType fileType, const Sha1Sum &sha1sum)
 Search file with the given sha1sum. More...
Sha1Sum getSha1Sum (File &file)
 Calculate sha1sum for the given File object. More...

Detailed Description

Definition at line 22 of file FilePool.hh.

Member Enumeration Documentation


Definition at line 28 of file FilePool.hh.

Constructor & Destructor Documentation

openmsx::FilePool::FilePool ( CommandController controler,
Reactor reactor 
openmsx::FilePool::~FilePool ( )

Member Function Documentation

File openmsx::FilePool::getFile ( FileType  fileType,
const Sha1Sum sha1sum 
Sha1Sum openmsx::FilePool::getSha1Sum ( File file)

Calculate sha1sum for the given File object.

If possible the result is retrieved from cache, avoiding the relatively expensive calculation.

Definition at line 480 of file

References end(), openmsx::File::getModificationDate(), openmsx::File::getURL(), openmsx::OPENMSX_QUIT_EVENT, and gl::sum().

Referenced by openmsx::CasImage::fillBuffer(), openmsx::DMKDiskImage::getSha1SumImpl(), openmsx::HD::switchImage(), openmsx::WavImage::WavImage(), openmsx::DSKDiskImage::~DSKDiskImage(), and openmsx::SCSILS120::~SCSILS120().

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