Description

Classes

     
class EScript::IO::AbstractFileSystemHandler
 
class EScript::IO::DefaultFileSystemHandler
DefaultFileSystemHandler
> AbstractFileSystemHandler .
struct EScript::IO::EntryInfo
 

Enumerations

   
   
enum entryType_t {TYPE_NOT_FOUND, TYPE_FILE, TYPE_DIRECTORY, TYPE_UNKNOWN}

Functions

   
   
void setFileSystemHandler( AbstractFileSystemHandler * handler)
   
AbstractFileSystemHandler * getFileSystemHandler()
   
StringData loadFile(const std::string & filename)
   
void saveFile(const std::string & filename, const std::string & content, bool overwrite)
   
uint32_t getFileMTime(const std::string & filename)
   
entryType_t getEntryType(const std::string & filename)
   
uint64_t getFileSize(const std::string & filename)
   
std::vector< std::string > getFilesInDir(const std::string & dirname, uint8_t flags)
   
std::string dirname(const std::string & filename)
   
std::string condensePath(const std::string & inputPath)

Documentation

enum
EScript::IO::entryType_t

public
 
 
enum entryType_t
Enumerator   Description
Enumerator   Description
TYPE_NOT_FOUND = -1  
TYPE_FILE = 0  
TYPE_DIRECTORY = 1  
TYPE_UNKNOWN = 2  

Defined in EScript/EScript/Utils/IO/IOBase.h:17


function
EScript::IO::setFileSystemHandler

public
     
     
void setFileSystemHandler( AbstractFileSystemHandler * handler )

Set a new fileSystemHandler responsible for all io-operations. The old handler is deleted.

Defined in EScript/EScript/Utils/IO/IO.h:26


function
EScript::IO::getFileSystemHandler

public
   
   
AbstractFileSystemHandler * getFileSystemHandler( )

Defined in EScript/EScript/Utils/IO/IO.h:27


function
EScript::IO::loadFile

public
     
     
StringData loadFile( const std::string & filename )

Defined in EScript/EScript/Utils/IO/IO.h:29


function
EScript::IO::saveFile

public
     
     
void saveFile( const std::string & filename,
  const std::string & content,
  bool overwrite
)    

Defined in EScript/EScript/Utils/IO/IO.h:30


function
EScript::IO::getFileMTime

public
     
     
uint32_t getFileMTime( const std::string & filename )

Parameters

filename

Returns

file modification Time

Defined in EScript/EScript/Utils/IO/IO.h:34


function
EScript::IO::getEntryType

public
     
     
entryType_t getEntryType( const std::string & filename )

Parameters

filename

Returns

IO::entryType (

See also: IOBase.h )

Defined in EScript/EScript/Utils/IO/IO.h:38


function
EScript::IO::getFileSize

public
     
     
uint64_t getFileSize( const std::string & filename )

Parameters

filename

Returns

filsize in byte.

Defined in EScript/EScript/Utils/IO/IO.h:42


function
EScript::IO::getFilesInDir

public
     
     
std::vector< std::string > getFilesInDir( const std::string & dirname,
  uint8_t flags
)    

Parameters

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

Exceptions

std::ios_base::failure
on failure.

Defined in EScript/EScript/Utils/IO/IO.h:50


function
EScript::IO::dirname

public
     
     
std::string dirname( const std::string & filename )

Defined in EScript/EScript/Utils/IO/IO.h:52


function
EScript::IO::condensePath

public
     
     
std::string condensePath( const std::string & inputPath )

Defined in EScript/EScript/Utils/IO/IO.h:63