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::NativeDirectory Class Reference

#include <nativevfs.h>

Inheritance diagram for cqsp::asset::NativeDirectory:
cqsp::asset::IVirtualDirectory

Public Member Functions

 NativeDirectory (NativeFileSystem *_nfs, const std::string &_root)
 
uint64_t GetSize () override
 Get number of files in directory More...
 
const std::string & GetRoot () override
 The root directory, relative to the filesystem. More...
 
std::shared_ptr< IVirtualFileGetFile (int index, FileModes modes) override
 Opens file of index. More...
 
const std::string & GetFilename (int index) override
 Get file name relative to this directory More...
 
IVirtualFileSystemGetFileSystem () override
 Get the filesystem this refers to. More...
 
- Public Member Functions inherited from cqsp::asset::IVirtualDirectory
 IVirtualDirectory ()
 
virtual ~IVirtualDirectory ()
 

Private Attributes

friend NativeFileSystem
 
std::vector< std::string > paths
 
std::string root
 
NativeFileSystem *const nfs
 

Constructor & Destructor Documentation

◆ NativeDirectory()

cqsp::asset::NativeDirectory::NativeDirectory ( NativeFileSystem _nfs,
const std::string &  _root 
)
inline

Member Function Documentation

◆ GetFile()

std::shared_ptr< cqsp::asset::IVirtualFile > cqsp::asset::NativeDirectory::GetFile ( int  index,
FileModes  modes 
)
overridevirtual

Opens file of index.

Implements cqsp::asset::IVirtualDirectory.

◆ GetFilename()

const std::string & cqsp::asset::NativeDirectory::GetFilename ( int  index)
overridevirtual

Get file name relative to this directory

Implements cqsp::asset::IVirtualDirectory.

◆ GetFileSystem()

cqsp::asset::IVirtualFileSystem * cqsp::asset::NativeDirectory::GetFileSystem ( )
overridevirtual

Get the filesystem this refers to.

Implements cqsp::asset::IVirtualDirectory.

◆ GetRoot()

const std::string & cqsp::asset::NativeDirectory::GetRoot ( )
overridevirtual

The root directory, relative to the filesystem.

Returns

Implements cqsp::asset::IVirtualDirectory.

◆ GetSize()

uint64_t cqsp::asset::NativeDirectory::GetSize ( )
overridevirtual

Get number of files in directory

Implements cqsp::asset::IVirtualDirectory.

Member Data Documentation

◆ NativeFileSystem

friend cqsp::asset::NativeDirectory::NativeFileSystem
private

◆ nfs

NativeFileSystem* const cqsp::asset::NativeDirectory::nfs
private

◆ paths

std::vector<std::string> cqsp::asset::NativeDirectory::paths
private

◆ root

std::string cqsp::asset::NativeDirectory::root
private

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