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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Typedefs | Enumerations | Functions
vfs.h File Reference
#include <map>
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  cqsp::asset::IVirtualFileSystem
 The main functionality for this is to read files, so writing to files will not really be supported. More...
 
class  cqsp::asset::IVirtualDirectory
 Meant to list all the files and sub files in the directory. This is sort of a replacement for directory iterator. If you want to cd a directory, just access it from the initial file system, I guess. More...
 
class  cqsp::asset::IVirtualFile
 
class  cqsp::asset::VirtualMounter
 

Namespaces

namespace  cqsp
 
namespace  cqsp::asset
 When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to find out how to add a resource to the game.
 

Typedefs

typedef std::shared_ptr< IVirtualFile > cqsp::asset::IVirtualFilePtr
 
typedef std::shared_ptr< IVirtualDirectory > cqsp::asset::IVirtualDirectoryPtr
 

Enumerations

enum  cqsp::asset::FileModes { cqsp::asset::Text = 0 , cqsp::asset::Binary = 1 << 0 }
 
enum class  cqsp::asset::Offset { cqsp::asset::Beg , cqsp::asset::End , cqsp::asset::Cur }
 

Functions

std::vector< uint8_t > cqsp::asset::ReadAllFromVFile (IVirtualFile *)
 Reads all the data from the virtual file. More...
 
std::string cqsp::asset::ReadAllFromVFileToString (IVirtualFile *file)
 Don't really want this, but ah well, it cannot be helped. More...
 
std::string cqsp::asset::GetFilename (const std::string &path)
 Gets filename from path. More...
 
std::string cqsp::asset::GetParentPath (const std::string &path)