Falcon::VFSFile Class Reference

VSF provider for physical file system on the host system. More...

#include <vfs_file.h>

Inheritance diagram for Falcon::VFSFile:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool chmod (const URI &uri, int mode)
virtual bool chown (const URI &uri, int uid, int gid)
virtual Streamcreate (const URI &uri, const CParams &p, bool &bSuccess)
virtual ErrorgetLastError ()
 Wraps the last system error into a suitable Falcon Error.
virtual int64 getLastFsError ()
 Get an integer representing the last file system specific error.
virtual bool link (const URI &uri1, const URI &uri2, bool bSymbolic)
virtual bool mkdir (const URI &uri, uint32 mode)
virtual bool move (const URI &suri, const URI &duri)
virtual Streamopen (const URI &uri, const OParams &p)
 Open a file.
virtual DirEntryopenDir (const URI &uri)
virtual bool readStats (const URI &uri, FileStat &s)
virtual bool rmdir (const URI &uri)
virtual bool unlink (const URI &uri)
 VFSFile ()
virtual bool writeStats (const URI &uri, const FileStat &s)
virtual ~VFSFile ()

Protected Member Functions

int paramsToMode (const OParams &p)

Protected Attributes

void * m_fsdata


Detailed Description

VSF provider for physical file system on the host system.

This class wraps the "file" URI provider and is implemented with different cpp files on different host systems.


Constructor & Destructor Documentation

Falcon::VFSFile::VFSFile (  ) 

virtual Falcon::VFSFile::~VFSFile (  )  [virtual]


Member Function Documentation

virtual bool Falcon::VFSFile::chmod ( const URI uri,
int  mode 
) [virtual]

Implements Falcon::VFSProvider.

virtual bool Falcon::VFSFile::chown ( const URI uri,
int  uid,
int  gid 
) [virtual]

Implements Falcon::VFSProvider.

virtual Stream* Falcon::VFSFile::create ( const URI uri,
const CParams p,
bool &  bSuccess 
) [virtual]

Implements Falcon::VFSProvider.

virtual Error* Falcon::VFSFile::getLastError (  )  [virtual]

Wraps the last system error into a suitable Falcon Error.

If getLastFsError() returns 0, then this method will return 0 too.

Implements Falcon::VFSProvider.

virtual int64 Falcon::VFSFile::getLastFsError (  )  [virtual]

Get an integer representing the last file system specific error.

The semantic of this number may be different on different VFS, but in all the VFS a return value of 0 is granted to indicate that the last operation performed was succesful.

Also, the returned error code must be made thread specific or otherwise reentrant/interlocked.

Implements Falcon::VFSProvider.

virtual bool Falcon::VFSFile::link ( const URI uri1,
const URI uri2,
bool  bSymbolic 
) [virtual]

Implements Falcon::VFSProvider.

virtual bool Falcon::VFSFile::mkdir ( const URI uri,
uint32  mode 
) [virtual]

Implements Falcon::VFSProvider.

virtual bool Falcon::VFSFile::move ( const URI suri,
const URI duri 
) [virtual]

Implements Falcon::VFSProvider.

virtual Stream* Falcon::VFSFile::open ( const URI uri,
const OParams p 
) [virtual]

Open a file.

Implements Falcon::VFSProvider.

virtual DirEntry* Falcon::VFSFile::openDir ( const URI uri  )  [virtual]

Implements Falcon::VFSProvider.

int Falcon::VFSFile::paramsToMode ( const OParams p  )  [inline, protected]

virtual bool Falcon::VFSFile::readStats ( const URI uri,
FileStat s 
) [virtual]

Implements Falcon::VFSProvider.

virtual bool Falcon::VFSFile::rmdir ( const URI uri  )  [virtual]

Implements Falcon::VFSProvider.

virtual bool Falcon::VFSFile::unlink ( const URI uri  )  [virtual]

Implements Falcon::VFSProvider.

virtual bool Falcon::VFSFile::writeStats ( const URI uri,
const FileStat s 
) [virtual]

Implements Falcon::VFSProvider.


Member Data Documentation

void* Falcon::VFSFile::m_fsdata [protected]


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

Generated on Mon Oct 19 10:11:49 2009 for Falcon_Core by  doxygen 1.5.8