Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Private Attributes | List of all members
cqsp::asset::VirtualMounter Class Reference

#include <vfs.h>

Public Member Functions

 ~VirtualMounter ()
 
void AddMountPoint (const std::string &path, IVirtualFileSystem *fs)
 
IVirtualFilePtr Open (const std::string &path, FileModes mode=FileModes::Text)
 Opens file. More...
 
IVirtualFilePtr Open (const std::string &mount, const std::string &path, FileModes mode=FileModes::Text)
 Opens file in mounted filesystem mount, with the mount path relative path path More...
 
std::shared_ptr< IVirtualDirectoryOpenDirectory (const std::string &path)
 Opens directory More...
 
std::shared_ptr< IVirtualDirectoryOpenDirectory (const std::string &mount, const std::string &path)
 Opens directory in mounted filesystem mount, with the mount path relative path path More...
 
bool IsFile (const std::string &path)
 
bool IsFile (const std::string &mount, const std::string &path)
 
bool IsDirectory (const std::string &path)
 
bool IsDirectory (const std::string &mount, const std::string &path)
 
bool Exists (const std::string &path)
 
bool Exists (const std::string &mount, const std::string &path)
 

Private Attributes

std::map< std::string, IVirtualFileSystem * > mount_points
 

Constructor & Destructor Documentation

◆ ~VirtualMounter()

cqsp::asset::VirtualMounter::~VirtualMounter ( )

Member Function Documentation

◆ AddMountPoint()

void cqsp::asset::VirtualMounter::AddMountPoint ( const std::string &  path,
IVirtualFileSystem fs 
)

◆ Exists() [1/2]

bool cqsp::asset::VirtualMounter::Exists ( const std::string &  mount,
const std::string &  path 
)

◆ Exists() [2/2]

bool cqsp::asset::VirtualMounter::Exists ( const std::string &  path)

◆ IsDirectory() [1/2]

bool cqsp::asset::VirtualMounter::IsDirectory ( const std::string &  mount,
const std::string &  path 
)

◆ IsDirectory() [2/2]

bool cqsp::asset::VirtualMounter::IsDirectory ( const std::string &  path)

◆ IsFile() [1/2]

bool cqsp::asset::VirtualMounter::IsFile ( const std::string &  mount,
const std::string &  path 
)

◆ IsFile() [2/2]

bool cqsp::asset::VirtualMounter::IsFile ( const std::string &  path)

◆ Open() [1/2]

std::shared_ptr< IVirtualFile > cqsp::asset::VirtualMounter::Open ( const std::string &  mount,
const std::string &  path,
FileModes  mode = FileModes::Text 
)

Opens file in mounted filesystem mount, with the mount path relative path path

◆ Open() [2/2]

std::shared_ptr< IVirtualFile > cqsp::asset::VirtualMounter::Open ( const std::string &  path,
FileModes  mode = FileModes::Text 
)

Opens file.

◆ OpenDirectory() [1/2]

std::shared_ptr< IVirtualDirectory > cqsp::asset::VirtualMounter::OpenDirectory ( const std::string &  mount,
const std::string &  path 
)

Opens directory in mounted filesystem mount, with the mount path relative path path

◆ OpenDirectory() [2/2]

std::shared_ptr< IVirtualDirectory > cqsp::asset::VirtualMounter::OpenDirectory ( const std::string &  path)

Opens directory

Member Data Documentation

◆ mount_points

std::map<std::string, IVirtualFileSystem*> cqsp::asset::VirtualMounter::mount_points
private

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