openMSX
|
#include <FileBase.hh>
Public Member Functions | |
virtual | ~FileBase ()=default |
virtual void | read (std::span< uint8_t > buffer)=0 |
virtual void | write (std::span< const uint8_t > buffer)=0 |
virtual std::span< const uint8_t > | mmap () |
virtual void | munmap () |
virtual size_t | getSize ()=0 |
virtual void | seek (size_t pos)=0 |
virtual size_t | getPos ()=0 |
virtual void | truncate (size_t size) |
virtual void | flush ()=0 |
virtual const std::string & | getURL () const =0 |
virtual std::string | getLocalReference () |
virtual std::string_view | getOriginalName () |
virtual bool | isReadOnly () const =0 |
virtual time_t | getModificationDate ()=0 |
Definition at line 13 of file FileBase.hh.
|
virtualdefault |
|
pure virtual |
Implemented in openmsx::CompressedFileAdapter, openmsx::LocalFile, and openmsx::MemoryBufferFile.
|
virtual |
Reimplemented in openmsx::LocalFile.
Definition at line 48 of file FileBase.cc.
|
pure virtual |
Implemented in openmsx::CompressedFileAdapter, openmsx::LocalFile, and openmsx::MemoryBufferFile.
|
virtual |
Reimplemented in openmsx::CompressedFileAdapter.
Definition at line 55 of file FileBase.cc.
References openmsx::FileOperations::getFilename(), and getURL().
|
pure virtual |
Implemented in openmsx::CompressedFileAdapter, openmsx::LocalFile, and openmsx::MemoryBufferFile.
Referenced by mmap().
|
pure virtual |
Implemented in openmsx::CompressedFileAdapter, openmsx::LocalFile, and openmsx::MemoryBufferFile.
Referenced by mmap(), and truncate().
|
pure virtual |
Implemented in openmsx::CompressedFileAdapter, openmsx::LocalFile, and openmsx::MemoryBufferFile.
Referenced by getOriginalName().
|
pure virtual |
Implemented in openmsx::CompressedFileAdapter, openmsx::LocalFile, and openmsx::MemoryBufferFile.
|
virtual |
Reimplemented in openmsx::CompressedFileAdapter.
Definition at line 9 of file FileBase.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::empty(), getPos(), getSize(), read(), and seek().
|
virtual |
Reimplemented in openmsx::CompressedFileAdapter.
Definition at line 25 of file FileBase.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::clear().
Referenced by openmsx::LocalFile::~LocalFile().
|
pure virtual |
Implemented in openmsx::CompressedFileAdapter, openmsx::LocalFile, and openmsx::MemoryBufferFile.
Referenced by mmap().
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::CompressedFileAdapter, and openmsx::LocalFile.
Referenced by mmap(), and truncate().
|
virtual |
Reimplemented in openmsx::CompressedFileAdapter.
Definition at line 30 of file FileBase.cc.
|
pure virtual |
Implemented in openmsx::CompressedFileAdapter, openmsx::LocalFile, and openmsx::MemoryBufferFile.
Referenced by truncate().