Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
vfs.cpp File Reference
#include "precompiled.h"
#include "lib/file/vfs/vfs.h"
#include "lib/allocators/shared_ptr.h"
#include "lib/file/file_system.h"
#include "lib/file/common/file_stats.h"
#include "lib/file/common/trace.h"
#include "lib/file/archive/archive.h"
#include "lib/file/io/io.h"
#include "lib/file/vfs/vfs_tree.h"
#include "lib/file/vfs/vfs_lookup.h"
#include "lib/file/vfs/vfs_populate.h"
#include <mutex>
#include <thread>
Include dependency graph for vfs.cpp:

Classes

class  VFS
 

Functions

 STATUS_ADD_DEFINITIONS (vfsStatusDefinitions)
 
PIVFS CreateVfs ()
 create an instance of a Virtual File System. More...
 

Variables

static const StatusDefinition vfsStatusDefinitions []
 
static std::mutex vfs_mutex
 

Function Documentation

◆ CreateVfs()

PIVFS CreateVfs ( )

create an instance of a Virtual File System.

note: there is no limitation to a single instance, it may make sense to create and destroy VFS instances during each unit test.

◆ STATUS_ADD_DEFINITIONS()

STATUS_ADD_DEFINITIONS ( vfsStatusDefinitions  )

Variable Documentation

◆ vfs_mutex

std::mutex vfs_mutex
static

◆ vfsStatusDefinitions

const StatusDefinition vfsStatusDefinitions[]
static
Initial value:
= {
{ ERR::VFS_DIR_NOT_FOUND, L"VFS directory not found" },
{ ERR::VFS_FILE_NOT_FOUND, L"VFS file not found" },
{ ERR::VFS_ALREADY_MOUNTED, L"VFS path already mounted" }
}
const Status VFS_FILE_NOT_FOUND
Definition: vfs.h:40
const Status VFS_DIR_NOT_FOUND
Definition: vfs.h:39
const Status VFS_ALREADY_MOUNTED
Definition: vfs.h:41