#include <vfs_file.h>
Public Member Functions | |
virtual bool | chmod (const URI &uri, int mode) |
virtual bool | chown (const URI &uri, int uid, int gid) |
virtual Stream * | create (const URI &uri, const CParams &p, bool &bSuccess) |
virtual Error * | getLastError () |
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 Stream * | open (const URI &uri, const OParams &p) |
Open a file. | |
virtual DirEntry * | openDir (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 |
This class wraps the "file" URI provider and is implemented with different cpp files on different host systems.
Falcon::VFSFile::VFSFile | ( | ) |
virtual Falcon::VFSFile::~VFSFile | ( | ) | [virtual] |
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.
Implements Falcon::VFSProvider.
Implements Falcon::VFSProvider.
Implements Falcon::VFSProvider.
Implements Falcon::VFSProvider.
int Falcon::VFSFile::paramsToMode | ( | const OParams & | p | ) | [inline, protected] |
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.
Implements Falcon::VFSProvider.
void* Falcon::VFSFile::m_fsdata [protected] |