openMSX
Classes | Public Member Functions | Protected Member Functions | List of all members
openmsx::CompressedFileAdapter Class Referenceabstract

#include <CompressedFileAdapter.hh>

Inheritance diagram for openmsx::CompressedFileAdapter:
Inheritance graph
[legend]
Collaboration diagram for openmsx::CompressedFileAdapter:
Collaboration graph
[legend]

Classes

struct  Decompressed
 

Public Member Functions

void read (void *buffer, size_t num) final override
 
void write (const void *buffer, size_t num) final override
 
const bytemmap (size_t &size) final override
 
void munmap () final override
 
size_t getSize () final override
 
void seek (size_t pos) final override
 
size_t getPos () final override
 
void truncate (size_t size) final override
 
void flush () final override
 
const std::string getURL () const final override
 
const std::string getOriginalName () final override
 
bool isReadOnly () const final override
 
time_t getModificationDate () final override
 
- Public Member Functions inherited from openmsx::FileBase
virtual ~FileBase ()
 
virtual const std::string getLocalReference ()
 

Protected Member Functions

 CompressedFileAdapter (std::unique_ptr< FileBase > file)
 
 ~CompressedFileAdapter ()
 
virtual void decompress (FileBase &file, Decompressed &decompressed)=0
 

Detailed Description

Definition at line 10 of file CompressedFileAdapter.hh.

Constructor & Destructor Documentation

§ CompressedFileAdapter()

openmsx::CompressedFileAdapter::CompressedFileAdapter ( std::unique_ptr< FileBase file)
explicitprotected

Definition at line 20 of file CompressedFileAdapter.cc.

§ ~CompressedFileAdapter()

openmsx::CompressedFileAdapter::~CompressedFileAdapter ( )
protected

Member Function Documentation

§ decompress()

virtual void openmsx::CompressedFileAdapter::decompress ( FileBase file,
Decompressed decompressed 
)
protectedpure virtual

§ flush()

void openmsx::CompressedFileAdapter::flush ( )
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 104 of file CompressedFileAdapter.cc.

§ getModificationDate()

time_t openmsx::CompressedFileAdapter::getModificationDate ( )
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 125 of file CompressedFileAdapter.cc.

Referenced by ~CompressedFileAdapter().

§ getOriginalName()

const string openmsx::CompressedFileAdapter::getOriginalName ( )
finaloverridevirtual

Reimplemented from openmsx::FileBase.

Definition at line 114 of file CompressedFileAdapter.cc.

References decompress().

§ getPos()

size_t openmsx::CompressedFileAdapter::getPos ( )
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 94 of file CompressedFileAdapter.cc.

§ getSize()

size_t openmsx::CompressedFileAdapter::getSize ( )
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 83 of file CompressedFileAdapter.cc.

References decompress().

§ getURL()

const string openmsx::CompressedFileAdapter::getURL ( ) const
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 109 of file CompressedFileAdapter.cc.

Referenced by ~CompressedFileAdapter().

§ isReadOnly()

bool openmsx::CompressedFileAdapter::isReadOnly ( ) const
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 120 of file CompressedFileAdapter.cc.

§ mmap()

const byte * openmsx::CompressedFileAdapter::mmap ( size_t &  size)
finaloverridevirtual

Reimplemented from openmsx::FileBase.

Definition at line 71 of file CompressedFileAdapter.cc.

References decompress().

§ munmap()

void openmsx::CompressedFileAdapter::munmap ( )
finaloverridevirtual

Reimplemented from openmsx::FileBase.

Definition at line 78 of file CompressedFileAdapter.cc.

§ read()

void openmsx::CompressedFileAdapter::read ( void *  buffer,
size_t  num 
)
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 55 of file CompressedFileAdapter.cc.

References decompress().

§ seek()

void openmsx::CompressedFileAdapter::seek ( size_t  pos)
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 89 of file CompressedFileAdapter.cc.

§ truncate()

void openmsx::CompressedFileAdapter::truncate ( size_t  size)
finaloverridevirtual

Reimplemented from openmsx::FileBase.

Definition at line 99 of file CompressedFileAdapter.cc.

§ write()

void openmsx::CompressedFileAdapter::write ( const void *  buffer,
size_t  num 
)
finaloverridevirtual

Implements openmsx::FileBase.

Definition at line 66 of file CompressedFileAdapter.cc.


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