ManaPlus
Namespaces | Functions | Variables
fs.h File Reference

(986a3bf)

#include "enums/fs/fsentrytype.h"
#include "enums/simpletypes/append.h"
#include "utils/stringvector.h"
#include "localconsts.h"

Go to the source code of this file.

Namespaces

 VirtFs
 

Functions

void VirtFs::init (const std::string &name)
 
void VirtFs::updateDirSeparator ()
 
const char * VirtFs::getDirSeparator ()
 
const char * VirtFs::getBaseDir ()
 
const char * VirtFs::getUserDir ()
 
bool VirtFs::exists (std::string name)
 
List * VirtFs::enumerateFiles (std::string dirName)
 
bool VirtFs::isDirectory (std::string name)
 
bool VirtFs::isSymbolicLink (const std::string &name)
 
void VirtFs::freeList (List *const handle)
 
File * VirtFs::openRead (std::string filename)
 
File * VirtFs::openWrite (std::string filename)
 
File * VirtFs::openAppend (std::string filename)
 
bool VirtFs::setWriteDir (const std::string &newDir)
 
bool VirtFs::mountDir (std::string newDir, const Append append)
 
bool VirtFs::mountDir2 (std::string newDir, std::string subDir, const Append append)
 
bool VirtFs::mountDirSilent (std::string newDir, const Append append)
 
bool VirtFs::mountDirSilent2 (std::string newDir, std::string subDir, const Append append)
 
bool VirtFs::unmountDir (std::string oldDir)
 
bool VirtFs::unmountDir2 (std::string oldDir, std::string subDir)
 
bool VirtFs::unmountDirSilent (std::string oldDir)
 
bool VirtFs::unmountDirSilent2 (std::string oldDir, std::string subDir)
 
bool VirtFs::mountZip (std::string newDir, const Append append)
 
bool VirtFs::mountZip2 (std::string newDir, std::string subDir, const Append append)
 
bool VirtFs::unmountZip (std::string oldDir)
 
bool VirtFs::unmountZip2 (std::string oldDir, std::string subDir)
 
std::string VirtFs::getRealDir (std::string fileName)
 
bool VirtFs::mkdir (const std::string &dirname)
 
bool VirtFs::remove (const std::string &filename)
 
bool VirtFs::deinit ()
 
void VirtFs::permitLinks (const bool val)
 
int64_t VirtFs::read (File *const file, void *const buffer, const uint32_t objSize, const uint32_t objCount)
 
int64_t VirtFs::write (File *const file, const void *const buffer, const uint32_t objSize, const uint32_t objCount)
 
int VirtFs::close (File *const file)
 
int64_t VirtFs::fileLength (File *const file)
 
int64_t VirtFs::tell (File *const file)
 
int VirtFs::seek (File *const file, const uint64_t pos)
 
int VirtFs::eof (File *const file)
 
bool VirtFs::mountDirInternal (const std::string &newDir, std::string subDir, const Append append)
 
bool VirtFs::unmountDirInternal (std::string oldDir, std::string subDir)
 
std::vector< FsEntry * > & VirtFs::getEntries ()
 
FsEntry * VirtFs::searchByRootInternal (const std::string &root, const std::string &subDir)
 
FsEntry * VirtFs::searchByTypeInternal (const std::string &root, const FsEntryTypeT type)
 
void VirtFs::addEntry (FsEntry *const entry, const Append append)
 
const char * VirtFs::loadFile (std::string filename, int &fileSize)
 
void VirtFs::getFiles (std::string dirName, StringVect &list)
 
void VirtFs::getFilesWithDir (std::string dirName, StringVect &list)
 
void VirtFs::getDirs (std::string dirName, StringVect &list)
 

Variables

const char * dirSeparator
 

Variable Documentation

◆ dirSeparator

const char* dirSeparator
extern

Definition at line 43 of file fs.cpp.