openMSX
Public Member Functions | List of all members
openmsx::FileBase Class Referenceabstract

#include <FileBase.hh>

Inheritance diagram for openmsx::FileBase:
Inheritance graph
[legend]

Public Member Functions

virtual ~FileBase ()=default
 
virtual void read (void *buffer, size_t num)=0
 
virtual void write (const void *buffer, size_t num)=0
 
virtual span< 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 std::string getURL () const =0
 
virtual std::string getLocalReference ()
 
virtual std::string getOriginalName ()
 
virtual bool isReadOnly () const =0
 
virtual time_t getModificationDate ()=0
 

Detailed Description

Definition at line 11 of file FileBase.hh.

Constructor & Destructor Documentation

◆ ~FileBase()

virtual openmsx::FileBase::~FileBase ( )
virtualdefault

Member Function Documentation

◆ flush()

virtual void openmsx::FileBase::flush ( )
pure virtual

◆ getLocalReference()

string openmsx::FileBase::getLocalReference ( )
virtual

Reimplemented in openmsx::LocalFile.

Definition at line 51 of file FileBase.cc.

◆ getModificationDate()

virtual time_t openmsx::FileBase::getModificationDate ( )
pure virtual

◆ getOriginalName()

string openmsx::FileBase::getOriginalName ( )
virtual

◆ getPos()

virtual size_t openmsx::FileBase::getPos ( )
pure virtual

◆ getSize()

virtual size_t openmsx::FileBase::getSize ( )
pure virtual

◆ getURL()

virtual std::string openmsx::FileBase::getURL ( ) const
pure virtual

◆ isReadOnly()

virtual bool openmsx::FileBase::isReadOnly ( ) const
pure virtual

◆ mmap()

span< uint8_t > openmsx::FileBase::mmap ( )
virtual

◆ munmap()

void openmsx::FileBase::munmap ( )
virtual

◆ read()

virtual void openmsx::FileBase::read ( void *  buffer,
size_t  num 
)
pure virtual

◆ seek()

virtual void openmsx::FileBase::seek ( size_t  pos)
pure virtual

◆ truncate()

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

Reimplemented in openmsx::CompressedFileAdapter.

Definition at line 31 of file FileBase.cc.

References getSize(), gl::min(), seek(), and write().

Referenced by openmsx::LocalFile::getPos().

◆ write()

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

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