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

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

Protected Member Functions

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

Detailed Description

Definition at line 10 of file CompressedFileAdapter.hh.

Constructor & Destructor Documentation

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

Definition at line 13 of file CompressedFileAdapter.cc.

openmsx::CompressedFileAdapter::~CompressedFileAdapter ( )
protectedvirtual

Definition at line 18 of file CompressedFileAdapter.cc.

References end(), and getURL().

Member Function Documentation

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

Referenced by getOriginalName(), getSize(), mmap(), and read().

void openmsx::CompressedFileAdapter::flush ( )
virtual

Implements openmsx::FileBase.

Definition at line 97 of file CompressedFileAdapter.cc.

time_t openmsx::CompressedFileAdapter::getModificationDate ( )
virtual

Implements openmsx::FileBase.

Definition at line 118 of file CompressedFileAdapter.cc.

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

Reimplemented from openmsx::FileBase.

Definition at line 107 of file CompressedFileAdapter.cc.

References decompress().

size_t openmsx::CompressedFileAdapter::getPos ( )
virtual

Implements openmsx::FileBase.

Definition at line 87 of file CompressedFileAdapter.cc.

size_t openmsx::CompressedFileAdapter::getSize ( )
virtual

Implements openmsx::FileBase.

Definition at line 76 of file CompressedFileAdapter.cc.

References decompress().

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

Implements openmsx::FileBase.

Definition at line 102 of file CompressedFileAdapter.cc.

Referenced by ~CompressedFileAdapter().

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

Implements openmsx::FileBase.

Definition at line 113 of file CompressedFileAdapter.cc.

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

Reimplemented from openmsx::FileBase.

Definition at line 64 of file CompressedFileAdapter.cc.

References decompress().

void openmsx::CompressedFileAdapter::munmap ( )
virtual

Reimplemented from openmsx::FileBase.

Definition at line 71 of file CompressedFileAdapter.cc.

void openmsx::CompressedFileAdapter::read ( void *  buffer,
size_t  num 
)
virtual
void openmsx::CompressedFileAdapter::seek ( size_t  pos)
virtual

Implements openmsx::FileBase.

Definition at line 82 of file CompressedFileAdapter.cc.

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

Reimplemented from openmsx::FileBase.

Definition at line 92 of file CompressedFileAdapter.cc.

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

Implements openmsx::FileBase.

Definition at line 59 of file CompressedFileAdapter.cc.


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