#include <fs/tool/fs_interface.h>
|
| | FileSystemInterface () |
| |
| virtual | ~FileSystemInterface () |
| |
| virtual int | chdir (const char *path)=0 |
| |
| virtual int | readlink (const char *pathname, char *buf, unsigned bufsiz)=0 |
| |
| virtual int | open (const char *pathname, bool write=false)=0 |
| |
| virtual int | close (int fd)=0 |
| |
| virtual int | read (int fd, void *buf, unsigned count)=0 |
| |
| virtual int | write (int fd, const void *buf, unsigned count)=0 |
| |
| virtual int | link (const char *oldpath, const char *newpath) |
| |
| virtual int | symlink (const char *target, const char *linkpath)=0 |
| |
| virtual int | unlink (const char *pathname) |
| |
| virtual int | rename (const char *oldpath, const char *newpath) |
| |
| virtual int | mkdir (const char *pathname)=0 |
| |
| virtual int | rmdir (const char *pathname) |
| |
| virtual int | truncate (const char *path) |
| |
| virtual DirHandle * | opendir (const char *name)=0 |
| |
| virtual DirEntry | readdir (DirHandle *dirp)=0 |
| |
| virtual void | rewinddir (DirHandle *dirp)=0 |
| |
| virtual int | closedir (DirHandle *dirp)=0 |
| |
| virtual struct FileStats | stat (const char *path, bool followSymlink=true)=0 |
| |
| virtual int | getcwd (char *buf, unsigned bufsiz)=0 |
| |
| virtual void | sync ()=0 |
| |
◆ DirHandle
◆ FileType
| Enumerator |
|---|
| FILE | |
| DIRECTORY | |
| SYMLINK | |
| OTHER | |
◆ FileSystemInterface()
| FileSystemInterface::FileSystemInterface |
( |
| ) |
|
|
inline |
◆ ~FileSystemInterface()
| virtual FileSystemInterface::~FileSystemInterface |
( |
| ) |
|
|
inlinevirtual |
◆ chdir()
| virtual int FileSystemInterface::chdir |
( |
const char * |
path | ) |
|
|
pure virtual |
◆ readlink()
| virtual int FileSystemInterface::readlink |
( |
const char * |
pathname, |
|
|
char * |
buf, |
|
|
unsigned |
bufsiz |
|
) |
| |
|
pure virtual |
◆ open()
| virtual int FileSystemInterface::open |
( |
const char * |
pathname, |
|
|
bool |
write = false |
|
) |
| |
|
pure virtual |
◆ close()
| virtual int FileSystemInterface::close |
( |
int |
fd | ) |
|
|
pure virtual |
◆ read()
| virtual int FileSystemInterface::read |
( |
int |
fd, |
|
|
void * |
buf, |
|
|
unsigned |
count |
|
) |
| |
|
pure virtual |
◆ write()
| virtual int FileSystemInterface::write |
( |
int |
fd, |
|
|
const void * |
buf, |
|
|
unsigned |
count |
|
) |
| |
|
pure virtual |
◆ link()
| virtual int FileSystemInterface::link |
( |
const char * |
oldpath, |
|
|
const char * |
newpath |
|
) |
| |
|
inlinevirtual |
◆ symlink()
| virtual int FileSystemInterface::symlink |
( |
const char * |
target, |
|
|
const char * |
linkpath |
|
) |
| |
|
pure virtual |
◆ unlink()
| virtual int FileSystemInterface::unlink |
( |
const char * |
pathname | ) |
|
|
inlinevirtual |
◆ rename()
| virtual int FileSystemInterface::rename |
( |
const char * |
oldpath, |
|
|
const char * |
newpath |
|
) |
| |
|
inlinevirtual |
◆ mkdir()
| virtual int FileSystemInterface::mkdir |
( |
const char * |
pathname | ) |
|
|
pure virtual |
◆ rmdir()
| virtual int FileSystemInterface::rmdir |
( |
const char * |
pathname | ) |
|
|
inlinevirtual |
◆ truncate()
| virtual int FileSystemInterface::truncate |
( |
const char * |
path | ) |
|
|
inlinevirtual |
◆ opendir()
| virtual DirHandle * FileSystemInterface::opendir |
( |
const char * |
name | ) |
|
|
pure virtual |
◆ readdir()
◆ rewinddir()
| virtual void FileSystemInterface::rewinddir |
( |
DirHandle * |
dirp | ) |
|
|
pure virtual |
◆ closedir()
| virtual int FileSystemInterface::closedir |
( |
DirHandle * |
dirp | ) |
|
|
pure virtual |
◆ stat()
| virtual struct FileStats FileSystemInterface::stat |
( |
const char * |
path, |
|
|
bool |
followSymlink = true |
|
) |
| |
|
pure virtual |
◆ getcwd()
| virtual int FileSystemInterface::getcwd |
( |
char * |
buf, |
|
|
unsigned |
bufsiz |
|
) |
| |
|
pure virtual |
◆ sync()
| virtual void FileSystemInterface::sync |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: