|
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.
|
#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< IVirtualDirectory > | OpenDirectory (const std::string &path) |
| Opens directory More... | |
| std::shared_ptr< IVirtualDirectory > | OpenDirectory (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 |
A virtual file filesystem where it can mount multiple types of file systems in a directory.
| cqsp::asset::VirtualMounter::~VirtualMounter | ( | ) |
| void cqsp::asset::VirtualMounter::AddMountPoint | ( | const std::string & | path, |
| IVirtualFileSystem * | fs | ||
| ) |
Mounts the new file system on <path>/
| bool cqsp::asset::VirtualMounter::Exists | ( | const std::string & | mount, |
| const std::string & | path | ||
| ) |
| bool cqsp::asset::VirtualMounter::Exists | ( | const std::string & | path | ) |
| bool cqsp::asset::VirtualMounter::IsDirectory | ( | const std::string & | mount, |
| const std::string & | path | ||
| ) |
| bool cqsp::asset::VirtualMounter::IsDirectory | ( | const std::string & | path | ) |
| bool cqsp::asset::VirtualMounter::IsFile | ( | const std::string & | mount, |
| const std::string & | path | ||
| ) |
| bool cqsp::asset::VirtualMounter::IsFile | ( | const std::string & | path | ) |
| 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
| std::shared_ptr< IVirtualFile > cqsp::asset::VirtualMounter::Open | ( | const std::string & | path, |
| FileModes | mode = FileModes::Text |
||
| ) |
Opens file.
| 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
| std::shared_ptr< IVirtualDirectory > cqsp::asset::VirtualMounter::OpenDirectory | ( | const std::string & | path | ) |
Opens directory
|
private |