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.
|
The main functionality for this is to read files, so writing to files will not really be supported. More...
#include <vfs.h>
Public Member Functions | |
IVirtualFileSystem () | |
virtual | ~IVirtualFileSystem () |
virtual bool | Initialize ()=0 |
virtual IVirtualFilePtr | Open (const std::string &path, FileModes modes=Text)=0 |
Opens file from the filesystem. Returns nullptr if file is invalid More... | |
virtual void | Close (IVirtualFilePtr &)=0 |
Closes the file. More... | |
virtual IVirtualDirectoryPtr | OpenDirectory (const std::string &path)=0 |
Lists all the files in the directory. Does not list directories in the list because for our purposes, we do not need to traverse and process directories with this. Returns nullptr if path does not exist or is not a directory. More... | |
virtual bool | IsFile (const std::string &path)=0 |
Is the file a file More... | |
virtual bool | IsDirectory (const std::string &path)=0 |
Is the file a directory </summary More... | |
virtual bool | Exists (const std::string &path)=0 |
Does the file exist More... | |
The main functionality for this is to read files, so writing to files will not really be supported.
|
inline |
|
inlinevirtual |
|
pure virtual |
Closes the file.
|
pure virtual |
Does the file exist
Implemented in cqsp::asset::NativeFileSystem.
|
pure virtual |
Implemented in cqsp::asset::NativeFileSystem.
|
pure virtual |
Is the file a directory </summary
Implemented in cqsp::asset::NativeFileSystem.
|
pure virtual |
Is the file a file
Implemented in cqsp::asset::NativeFileSystem.
|
pure virtual |
Opens file from the filesystem. Returns nullptr if file is invalid
Implemented in cqsp::asset::NativeFileSystem.
|
pure virtual |
Lists all the files in the directory. Does not list directories in the list because for our purposes, we do not need to traverse and process directories with this. Returns nullptr if path does not exist or is not a directory.
Implemented in cqsp::asset::NativeFileSystem.