public

Inheritance Graph

graph BT
	DBFSProvider
	DBFSProvider --> AbstractFSProvider
	click DBFSProvider "classUtil_1_1DBFSProvider"
	click AbstractFSProvider "classUtil_1_1AbstractFSProvider"

Description

Standard file system provider for accessing normal files with “file” protocol. E.g. “file://bla/foo.txt”

[ DBFSProvider ] > [ AbstractFSProvider ]

Classes

   
class Util::DBFSProvider::DBHandle

Public Static Attributes

   
   
const int NO_ENTRY

Public Static Functions

   
   
bool init()
   
sqlite3_stmt * createStatement(sqlite3 * db, const char * sql)

Public Functions

   
   
  DBFSProvider()
   
  ~DBFSProvider()
   
status_t makeDir(const FileName & path)
   
status_t makeDirRecursive(const FileName & void)
   
status_t readFile(const FileName & file, std::vector< uint8_t > & data)
   
status_t writeFile(const FileName & void, const std::vector< uint8_t > & data, bool overwrite)
   
bool isFile(const FileName & void)
   
bool isDir(const FileName & void)
   
size_t fileSize(const FileName & filename)
   
status_t dir(const FileName & path, std::list< FileName > & result, uint8_t flags)
   
void flush()

Documentation

variable
Util::DBFSProvider::NO_ENTRY

public static
 
 
const int NO_ENTRY

Defined in Util/IO/DBFSProvider.h:43


function
Util::DBFSProvider::init

public static
   
   
bool init( )

Defined in Util/IO/DBFSProvider.h:37


function
Util::DBFSProvider::createStatement

public static
     
     
sqlite3_stmt * createStatement( sqlite3 * db,
  const char * sql
)    

Defined in Util/IO/DBFSProvider.h:41


function
Util::DBFSProvider::DBFSProvider

public
   
   
DBFSProvider( )

Defined in Util/IO/DBFSProvider.h:87


function
Util::DBFSProvider::~DBFSProvider

public virtual
   
   
~DBFSProvider( )

Defined in Util/IO/DBFSProvider.h:88


function
Util::DBFSProvider::makeDir

public virtual
     
     
status_t makeDir( const FileName & path )

Defined in Util/IO/DBFSProvider.h:90


function
Util::DBFSProvider::makeDirRecursive

public virtual
     
     
status_t makeDirRecursive( const FileName & void )

Defined in Util/IO/DBFSProvider.h:91


function
Util::DBFSProvider::readFile

public virtual
     
     
status_t readFile( const FileName & file,
  std::vector< uint8_t > & data
)    

Defined in Util/IO/DBFSProvider.h:93


function
Util::DBFSProvider::writeFile

public virtual
     
     
status_t writeFile( const FileName & void,
  const std::vector< uint8_t > & data,
  bool overwrite
)    

Defined in Util/IO/DBFSProvider.h:94


function
Util::DBFSProvider::isFile

public virtual
     
     
bool isFile( const FileName & void )

Defined in Util/IO/DBFSProvider.h:96


function
Util::DBFSProvider::isDir

public virtual
     
     
bool isDir( const FileName & void )

Defined in Util/IO/DBFSProvider.h:97


function
Util::DBFSProvider::fileSize

public virtual
     
     
size_t fileSize( const FileName & filename )

Defined in Util/IO/DBFSProvider.h:98


function
Util::DBFSProvider::dir

public virtual
     
     
status_t dir( const FileName & path,
  std::list< FileName > & result,
  uint8_t flags
)    

Defined in Util/IO/DBFSProvider.h:99


function
Util::DBFSProvider::flush

public virtual
   
   
void flush( )

If some kind of internal caching is used, all data should be written to disk

Note: May block if needed

Defined in Util/IO/DBFSProvider.h:101