ManaPlus
Public Member Functions | Data Fields
VirtFs::FsFuncs Struct Reference

#include <fsfuncs.h>

Public Member Functions

 FsFuncs ()
 

Data Fields

int(* close )(File *const file)
 
int64_t(* read )(File *const file, void *const buffer, const uint32_t objSize, const uint32_t objCount)
 
int64_t(* write )(File *const file, const void *const buffer, const uint32_t objSize, const uint32_t objCount)
 
int64_t(* fileLength )(File *const file)
 
int64_t(* tell )(File *const file)
 
int(* seek )(File *const file, const uint64_t pos)
 
bool(* exists )(FsEntry *const entry, std::string filename, std::string dirName)
 
bool(* getRealDir )(FsEntry *const entry, std::string filename, std::string dirName, std::string &realDir)
 
void(* enumerate )(FsEntry *const entry, std::string dirName, StringVect &names)
 
void(* getFiles )(FsEntry *const entry, std::string dirName, StringVect &names)
 
void(* getFilesWithDir )(FsEntry *const entry, const std::string &dirName, StringVect &names)
 
void(* getDirs )(FsEntry *const entry, std::string dirName, StringVect &names)
 
bool(* isDirectory )(FsEntry *const entry, std::string dirName, bool &isDirFlag)
 
File *(* openRead )(FsEntry *const entry, std::string filename)
 
File *(* openWrite )(FsEntry *const entry, const std::string &filename)
 
File *(* openAppend )(FsEntry *const entry, const std::string &filename)
 
int(* eof )(File *const file)
 
const char *(* loadFile )(FsEntry *const entry, std::string fileName, int &fileSize)
 
int32_t(* rwops_seek )(SDL_RWops *const rw, const int32_t offset, const int whence)
 
int(* rwops_read )(SDL_RWops *const rw, void *const ptr, const int size, const int maxnum)
 
int(* rwops_write )(SDL_RWops *const rw, const void *const ptr, const int size, const int num)
 
int(* rwops_close )(SDL_RWops *const rw)
 

Detailed Description

Definition at line 39 of file fsfuncs.h.

Constructor & Destructor Documentation

◆ FsFuncs()

VirtFs::FsFuncs::FsFuncs ( )
inline

Definition at line 41 of file fsfuncs.h.

41  :
42  close(nullptr),
43  read(nullptr),
44  write(nullptr),
45  fileLength(nullptr),
46  tell(nullptr),
47  seek(nullptr),
48  exists(nullptr),
49  getRealDir(nullptr),
50  enumerate(nullptr),
51  getFiles(nullptr),
52  getFilesWithDir(nullptr),
53  getDirs(nullptr),
54  isDirectory(nullptr),
55  openRead(nullptr),
56  openWrite(nullptr),
57  openAppend(nullptr),
58  eof(nullptr),
59  loadFile(nullptr),
60  rwops_seek(nullptr),
61  rwops_read(nullptr),
62  rwops_write(nullptr),
63 #ifdef USE_SDL2
64  rwops_size(nullptr),
65 #endif // USE_SDL2
66  rwops_close(nullptr)
67  {
68  }
void(* getDirs)(FsEntry *const entry, std::string dirName, StringVect &names)
Definition: fsfuncs.h:101
int(* seek)(File *const file, const uint64_t pos)
Definition: fsfuncs.h:83
int64_t(* fileLength)(File *const file)
Definition: fsfuncs.h:81
File *(* openWrite)(FsEntry *const entry, const std::string &filename)
Definition: fsfuncs.h:109
bool(* exists)(FsEntry *const entry, std::string filename, std::string dirName)
Definition: fsfuncs.h:85
void(* enumerate)(FsEntry *const entry, std::string dirName, StringVect &names)
Definition: fsfuncs.h:92
int(* rwops_write)(SDL_RWops *const rw, const void *const ptr, const int size, const int num)
Definition: fsfuncs.h:125
File *(* openAppend)(FsEntry *const entry, const std::string &filename)
Definition: fsfuncs.h:111
int64_t(* write)(File *const file, const void *const buffer, const uint32_t objSize, const uint32_t objCount)
Definition: fsfuncs.h:77
File *(* openRead)(FsEntry *const entry, std::string filename)
Definition: fsfuncs.h:107
int(* eof)(File *const file)
Definition: fsfuncs.h:113
int(* close)(File *const file)
Definition: fsfuncs.h:72
int32_t(* rwops_seek)(SDL_RWops *const rw, const int32_t offset, const int whence)
Definition: fsfuncs.h:118
const char *(* loadFile)(FsEntry *const entry, std::string fileName, int &fileSize)
Definition: fsfuncs.h:114
int64_t(* tell)(File *const file)
Definition: fsfuncs.h:82
void(* getFilesWithDir)(FsEntry *const entry, const std::string &dirName, StringVect &names)
Definition: fsfuncs.h:98
int(* rwops_read)(SDL_RWops *const rw, void *const ptr, const int size, const int maxnum)
Definition: fsfuncs.h:121
bool(* getRealDir)(FsEntry *const entry, std::string filename, std::string dirName, std::string &realDir)
Definition: fsfuncs.h:88
void(* getFiles)(FsEntry *const entry, std::string dirName, StringVect &names)
Definition: fsfuncs.h:95
int(* rwops_close)(SDL_RWops *const rw)
Definition: fsfuncs.h:132
int64_t(* read)(File *const file, void *const buffer, const uint32_t objSize, const uint32_t objCount)
Definition: fsfuncs.h:73
bool(* isDirectory)(FsEntry *const entry, std::string dirName, bool &isDirFlag)
Definition: fsfuncs.h:104

Field Documentation

◆ close

int(* VirtFs::FsFuncs::close) (File *const file)

Definition at line 72 of file fsfuncs.h.

◆ enumerate

void(* VirtFs::FsFuncs::enumerate) (FsEntry *const entry, std::string dirName, StringVect &names)

Definition at line 92 of file fsfuncs.h.

Referenced by VirtFs::enumerateFiles().

◆ eof

int(* VirtFs::FsFuncs::eof) (File *const file)

Definition at line 113 of file fsfuncs.h.

◆ exists

bool(* VirtFs::FsFuncs::exists) (FsEntry *const entry, std::string filename, std::string dirName)

Definition at line 85 of file fsfuncs.h.

Referenced by VirtFs::exists().

◆ fileLength

int64_t(* VirtFs::FsFuncs::fileLength) (File *const file)

Definition at line 81 of file fsfuncs.h.

◆ getDirs

void(* VirtFs::FsFuncs::getDirs) (FsEntry *const entry, std::string dirName, StringVect &names)

Definition at line 101 of file fsfuncs.h.

Referenced by VirtFs::getDirs().

◆ getFiles

void(* VirtFs::FsFuncs::getFiles) (FsEntry *const entry, std::string dirName, StringVect &names)

Definition at line 95 of file fsfuncs.h.

Referenced by VirtFs::getFiles().

◆ getFilesWithDir

void(* VirtFs::FsFuncs::getFilesWithDir) (FsEntry *const entry, const std::string &dirName, StringVect &names)

Definition at line 98 of file fsfuncs.h.

Referenced by VirtFs::getFilesWithDir().

◆ getRealDir

bool(* VirtFs::FsFuncs::getRealDir) (FsEntry *const entry, std::string filename, std::string dirName, std::string &realDir)

Definition at line 88 of file fsfuncs.h.

Referenced by VirtFs::getRealDir().

◆ isDirectory

bool(* VirtFs::FsFuncs::isDirectory) (FsEntry *const entry, std::string dirName, bool &isDirFlag)

Definition at line 104 of file fsfuncs.h.

Referenced by VirtFs::isDirectory().

◆ loadFile

const char*(* VirtFs::FsFuncs::loadFile) (FsEntry *const entry, std::string fileName, int &fileSize)

Definition at line 114 of file fsfuncs.h.

Referenced by VirtFs::loadFile().

◆ openAppend

File*(* VirtFs::FsFuncs::openAppend) (FsEntry *const entry, const std::string &filename)

Definition at line 111 of file fsfuncs.h.

Referenced by VirtFs::openAppend().

◆ openRead

File*(* VirtFs::FsFuncs::openRead) (FsEntry *const entry, std::string filename)

Definition at line 107 of file fsfuncs.h.

Referenced by VirtFs::openRead().

◆ openWrite

File*(* VirtFs::FsFuncs::openWrite) (FsEntry *const entry, const std::string &filename)

Definition at line 109 of file fsfuncs.h.

Referenced by VirtFs::openWrite().

◆ read

int64_t(* VirtFs::FsFuncs::read) (File *const file, void *const buffer, const uint32_t objSize, const uint32_t objCount)

Definition at line 73 of file fsfuncs.h.

Referenced by VirtFs::FsZip::rwops_read().

◆ rwops_close

int(* VirtFs::FsFuncs::rwops_close) (SDL_RWops *const rw)

Definition at line 132 of file fsfuncs.h.

Referenced by VirtFs::create_rwops().

◆ rwops_read

int(* VirtFs::FsFuncs::rwops_read) (SDL_RWops *const rw, void *const ptr, const int size, const int maxnum)

Definition at line 121 of file fsfuncs.h.

Referenced by VirtFs::create_rwops().

◆ rwops_seek

int32_t(* VirtFs::FsFuncs::rwops_seek) (SDL_RWops *const rw, const int32_t offset, const int whence)

Definition at line 118 of file fsfuncs.h.

Referenced by VirtFs::create_rwops().

◆ rwops_write

int(* VirtFs::FsFuncs::rwops_write) (SDL_RWops *const rw, const void *const ptr, const int size, const int num)

Definition at line 125 of file fsfuncs.h.

Referenced by VirtFs::create_rwops().

◆ seek

int(* VirtFs::FsFuncs::seek) (File *const file, const uint64_t pos)

Definition at line 83 of file fsfuncs.h.

Referenced by VirtFs::create_rwops().

◆ tell

int64_t(* VirtFs::FsFuncs::tell) (File *const file)

Definition at line 82 of file fsfuncs.h.

◆ write

int64_t(* VirtFs::FsFuncs::write) (File *const file, const void *const buffer, const uint32_t objSize, const uint32_t objCount)

Definition at line 77 of file fsfuncs.h.


The documentation for this struct was generated from the following file: