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 (std::string filename, File::OpenMode mode)
 
 LocalFile (std::string filename, const char *mode)
 
 ~LocalFile () override
 
void read (std::span< uint8_t > buffer) override
 
void write (std::span< const uint8_t > buffer) override
 
size_t getSize () override
 
void seek (size_t pos) override
 
size_t getPos () override
 
void flush () override
 
const std::string & getURL () const override
 
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 std::span< const uint8_t > mmap ()
 
virtual void munmap ()
 
virtual void truncate (size_t size)
 
virtual std::string_view getOriginalName ()
 

Detailed Description

Definition at line 17 of file LocalFile.hh.

Constructor & Destructor Documentation

◆ LocalFile() [1/2]

openmsx::LocalFile::LocalFile ( std::string  filename,
File::OpenMode  mode 
)

◆ LocalFile() [2/2]

openmsx::LocalFile::LocalFile ( std::string  filename,
const char *  mode 
)

◆ ~LocalFile()

openmsx::LocalFile::~LocalFile ( )
override

Definition at line 81 of file LocalFile.cc.

References openmsx::FileBase::munmap().

Member Function Documentation

◆ flush()

void openmsx::LocalFile::flush ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 251 of file LocalFile.cc.

◆ getLocalReference()

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

Reimplemented from openmsx::FileBase.

Definition at line 261 of file LocalFile.cc.

◆ getModificationDate()

time_t openmsx::LocalFile::getModificationDate ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 271 of file LocalFile.cc.

◆ getPos()

size_t openmsx::LocalFile::getPos ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 236 of file LocalFile.cc.

◆ getSize()

size_t openmsx::LocalFile::getSize ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 201 of file LocalFile.cc.

References getURL().

Referenced by LocalFile(), and LocalFile().

◆ getURL()

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

Implements openmsx::FileBase.

Definition at line 256 of file LocalFile.cc.

Referenced by getSize().

◆ isReadOnly()

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

Implements openmsx::FileBase.

Definition at line 266 of file LocalFile.cc.

◆ preCacheFile()

void openmsx::LocalFile::preCacheFile ( )

Definition at line 86 of file LocalFile.cc.

References openmsx::FileOperations::getNativePath().

◆ read()

void openmsx::LocalFile::read ( std::span< uint8_t >  buffer)
overridevirtual

Implements openmsx::FileBase.

Definition at line 91 of file LocalFile.cc.

◆ seek()

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

Implements openmsx::FileBase.

Definition at line 224 of file LocalFile.cc.

◆ write()

void openmsx::LocalFile::write ( std::span< const uint8_t >  buffer)
overridevirtual

Implements openmsx::FileBase.

Definition at line 103 of file LocalFile.cc.


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