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 | List of all members
cqsp::asset::IVirtualDirectory Class Referenceabstract

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...

#include <vfs.h>

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

Public Member Functions

 IVirtualDirectory ()
 
virtual ~IVirtualDirectory ()
 
virtual uint64_t GetSize ()=0
 Get number of files in directory More...
 
virtual const std::string & GetRoot ()=0
 The root directory, relative to the filesystem. More...
 
virtual IVirtualFilePtr GetFile (int index, FileModes modes=Text)=0
 Opens file of index. More...
 
virtual const std::string & GetFilename (int index)=0
 Get file name relative to this directory More...
 
virtual IVirtualFileSystemGetFileSystem ()=0
 Get the filesystem this refers to. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ IVirtualDirectory()

cqsp::asset::IVirtualDirectory::IVirtualDirectory ( )
inline

◆ ~IVirtualDirectory()

virtual cqsp::asset::IVirtualDirectory::~IVirtualDirectory ( )
inlinevirtual

Member Function Documentation

◆ GetFile()

virtual IVirtualFilePtr cqsp::asset::IVirtualDirectory::GetFile ( int  index,
FileModes  modes = Text 
)
pure virtual

Opens file of index.

Implemented in cqsp::asset::NativeDirectory.

◆ GetFilename()

virtual const std::string & cqsp::asset::IVirtualDirectory::GetFilename ( int  index)
pure virtual

Get file name relative to this directory

Implemented in cqsp::asset::NativeDirectory.

◆ GetFileSystem()

virtual IVirtualFileSystem * cqsp::asset::IVirtualDirectory::GetFileSystem ( )
pure virtual

Get the filesystem this refers to.

Implemented in cqsp::asset::NativeDirectory.

◆ GetRoot()

virtual const std::string & cqsp::asset::IVirtualDirectory::GetRoot ( )
pure virtual

The root directory, relative to the filesystem.

Returns

Implemented in cqsp::asset::NativeDirectory.

◆ GetSize()

virtual uint64_t cqsp::asset::IVirtualDirectory::GetSize ( )
pure virtual

Get number of files in directory

Implemented in cqsp::asset::NativeDirectory.


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