ManaPlus
Namespaces | Macros | Functions | Variables
fs.cpp File Reference

(986a3bf)

#include "fs/virtfs/fs.h"
#include "fs/files.h"
#include "fs/paths.h"
#include "fs/virtfs/direntry.h"
#include "fs/virtfs/file.h"
#include "fs/virtfs/fsdir.h"
#include "fs/virtfs/fsfuncs.h"
#include "fs/virtfs/fszip.h"
#include "fs/virtfs/list.h"
#include "fs/virtfs/zipentry.h"
#include "fs/virtfs/zipreader.h"
#include "utils/checkutils.h"
#include "utils/foreach.h"
#include "utils/stdmove.h"
#include "utils/stringutils.h"
#include "debug.h"

Go to the source code of this file.

Namespaces

 VirtFs
 
 VirtFs::anonymous_namespace{fs.cpp}
 

Macros

#define reportNonTests(a, b)   reportAlways(a, b)
 

Functions

void VirtFs::init (const std::string &name)
 
void VirtFs::updateDirSeparator ()
 
const char * VirtFs::getDirSeparator ()
 
const char * VirtFs::getBaseDir ()
 
const char * VirtFs::getUserDir ()
 
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)
 
bool VirtFs::exists (std::string name)
 
List * VirtFs::enumerateFiles (std::string dirName)
 
void VirtFs::getFiles (std::string dirName, StringVect &list)
 
void VirtFs::getFilesWithDir (std::string dirName, StringVect &list)
 
void VirtFs::getDirs (std::string dirName, StringVect &list)
 
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)
 
void VirtFs::addEntry (FsEntry *const entry, const Append append)
 
bool VirtFs::mountDirInternal (const std::string &newDir, std::string subDir, const Append append)
 
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::unmountDirInternal (std::string oldDir, std::string subDir)
 
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)
 
int VirtFs::close (File *const file)
 
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)
 
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)
 
const char * VirtFs::loadFile (std::string filename, int &fileSize)
 

Variables

const char * dirSeparator = 0
 
std::vector< FsEntry * > VirtFs::anonymous_namespace{fs.cpp}::mEntries
 

Macro Definition Documentation

◆ reportNonTests

#define reportNonTests (   a,
 
)    reportAlways(a, b)

Definition at line 48 of file fs.cpp.

Variable Documentation

◆ dirSeparator

const char* dirSeparator = 0