public

Inheritance Graph

graph BT
	AbstractFileSystemHandler
	DefaultFileSystemHandler --> AbstractFileSystemHandler
	click AbstractFileSystemHandler "classEScript_1_1IO_1_1AbstractFileSystemHandler"
	click DefaultFileSystemHandler "classEScript_1_1IO_1_1DefaultFileSystemHandler"

Description

A FileSystemHandler servers as interface to the file system. Exchaninging this handler allows to globally add support for additional file systems (e.g. by implementing a http interface), or to add an access restriction to file operations (e.g. limit all operations to certain folders).

Protected Functions

   
   
  AbstractFileSystemHandler()

Public Functions

   
   
  ~AbstractFileSystemHandler()
   
void deleteFile(const std::string & void)
o
   
std::vector< std::string > dir(const std::string & void, uint8_t void)
   
entryType_t getEntryType(const std::string & path)
o
   
EntryInfo getEntryInfo(const std::string & void)
o
   
uint32_t getFileCTime(const std::string & path)
o
   
uint32_t getFileMTime(const std::string & path)
o
   
uint64_t getFileSize(const std::string & path)
o
   
void makeDir(const std::string & void)
o
   
StringData loadFile(const std::string & void)
o
   
void saveFile(const std::string & void, const std::string & void, bool void)
o

Documentation

function
EScript::IO::AbstractFileSystemHandler::AbstractFileSystemHandler

protected inline
   
   
AbstractFileSystemHandler( )

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:35


function
EScript::IO::AbstractFileSystemHandler::~AbstractFileSystemHandler

public inline virtual
   
   
~AbstractFileSystemHandler( )

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:37


function
EScript::IO::AbstractFileSystemHandler::deleteFile

public inline virtual
     
     
void deleteFile( const std::string & void )

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:40


function
EScript::IO::AbstractFileSystemHandler::dir

public inline virtual
     
     
std::vector< std::string > dir( const std::string & void,
  uint8_t void
)    

o

Parameters

dirname
flags
1 … Files 2 … Directories 4 … Recurse Subdirectories

Exceptions

std::ios_base::failure
on failure.

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:49


function
EScript::IO::AbstractFileSystemHandler::getEntryType

public inline virtual
     
     
entryType_t getEntryType( const std::string & path )

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:53


function
EScript::IO::AbstractFileSystemHandler::getEntryInfo

public inline virtual
     
     
EntryInfo getEntryInfo( const std::string & void )

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:57


function
EScript::IO::AbstractFileSystemHandler::getFileCTime

public inline virtual
     
     
uint32_t getFileCTime( const std::string & path )

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:61


function
EScript::IO::AbstractFileSystemHandler::getFileMTime

public inline virtual
     
     
uint32_t getFileMTime( const std::string & path )

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:65


function
EScript::IO::AbstractFileSystemHandler::getFileSize

public inline virtual
     
     
uint64_t getFileSize( const std::string & path )

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:69


function
EScript::IO::AbstractFileSystemHandler::makeDir

public inline virtual
     
     
void makeDir( const std::string & void )

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:74


function
EScript::IO::AbstractFileSystemHandler::loadFile

public inline virtual
     
     
StringData loadFile( const std::string & void )

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:78


function
EScript::IO::AbstractFileSystemHandler::saveFile

public inline virtual
     
     
void saveFile( const std::string & void,
  const std::string & void,
  bool void
)    

o

Defined in EScript/EScript/Utils/IO/AbstractFileSystemHandler.h:82