openMSX
Public Member Functions | List of all members
openmsx::LocalFile Class Referencefinal

#include <LocalFile.hh>

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

Public Member Functions

 LocalFile (string_view filename, File::OpenMode mode)
 
 LocalFile (string_view filename, const char *mode)
 
 ~LocalFile () override
 
void read (void *buffer, size_t num) override
 
void write (const void *buffer, size_t num) override
 
size_t getSize () override
 
void seek (size_t pos) override
 
size_t getPos () override
 
void flush () override
 
const std::string getURL () const override
 
const std::string getLocalReference () override
 
bool isReadOnly () const override
 
time_t getModificationDate () override
 
void preCacheFile ()
 
- Public Member Functions inherited from openmsx::FileBase
virtual ~FileBase ()=default
 
virtual const bytemmap (size_t &size)
 
virtual void munmap ()
 
virtual void truncate (size_t size)
 
virtual const std::string getOriginalName ()
 

Detailed Description

Definition at line 18 of file LocalFile.hh.

Constructor & Destructor Documentation

◆ LocalFile() [1/2]

openmsx::LocalFile::LocalFile ( string_view  filename,
File::OpenMode  mode 
)

◆ LocalFile() [2/2]

openmsx::LocalFile::LocalFile ( string_view  filename,
const char *  mode 
)

◆ ~LocalFile()

openmsx::LocalFile::~LocalFile ( )
override

Definition at line 95 of file LocalFile.cc.

References openmsx::FileBase::munmap().

Member Function Documentation

◆ flush()

void openmsx::LocalFile::flush ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 261 of file LocalFile.cc.

◆ getLocalReference()

const string openmsx::LocalFile::getLocalReference ( )
overridevirtual

Reimplemented from openmsx::FileBase.

Definition at line 271 of file LocalFile.cc.

◆ getModificationDate()

time_t openmsx::LocalFile::getModificationDate ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 281 of file LocalFile.cc.

◆ getPos()

size_t openmsx::LocalFile::getPos ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 246 of file LocalFile.cc.

References openmsx::FileBase::truncate().

◆ getSize()

size_t openmsx::LocalFile::getSize ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 211 of file LocalFile.cc.

References getURL().

Referenced by LocalFile(), and write().

◆ getURL()

const string openmsx::LocalFile::getURL ( ) const
overridevirtual

Implements openmsx::FileBase.

Definition at line 266 of file LocalFile.cc.

Referenced by getSize().

◆ isReadOnly()

bool openmsx::LocalFile::isReadOnly ( ) const
overridevirtual

Implements openmsx::FileBase.

Definition at line 276 of file LocalFile.cc.

◆ preCacheFile()

void openmsx::LocalFile::preCacheFile ( )

Definition at line 100 of file LocalFile.cc.

References openmsx::FileOperations::getNativePath().

◆ read()

void openmsx::LocalFile::read ( void *  buffer,
size_t  num 
)
overridevirtual

Implements openmsx::FileBase.

Definition at line 106 of file LocalFile.cc.

◆ seek()

void openmsx::LocalFile::seek ( size_t  pos)
overridevirtual

Implements openmsx::FileBase.

Definition at line 234 of file LocalFile.cc.

◆ write()

void openmsx::LocalFile::write ( const void *  buffer,
size_t  num 
)
overridevirtual

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