|
LittleFileSystem
|
Interface for a file system. More...
#include <IFileSystem.h>
Public Member Functions | |
| IFileSystem () | |
| Default constructor. | |
| virtual | ~IFileSystem () |
| Virtual destructor. | |
| virtual FilePtr | Open (const char *path, const char *mode, bool create)=0 |
| virtual bool | Exists (const char *path)=0 |
| virtual bool | Rename (const char *pathFrom, const char *pathTo)=0 |
| virtual bool | Remove (const char *path)=0 |
| virtual bool | CreateDirectory (const char *path)=0 |
| virtual bool | RemoveDirectory (const char *path)=0 |
| void | Mountpoint (const char *mountpoint) |
| const char * | Mountpoint () const |
Protected Attributes | |
| const char * | _mountpoint |
| Mount point of the file system. | |
Interface for a file system.
|
inline |
Default constructor.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Create a directory
| path | - path of the directory |
Implemented in ntdv::VirtualFileSystem.
|
pure virtual |
Check if a file exists
| path | - path of the file |
Implemented in LittleFileSystemImpl, and ntdv::VirtualFileSystem.
| const char * IFileSystem::Mountpoint | ( | ) | const |
Get the mount point of the file system
| void IFileSystem::Mountpoint | ( | const char * | mountpoint | ) |
Set the mount point of the file system
| mountpoint | - the mount point |
|
pure virtual |
Open a file
| path | - path of the file |
| mode | - mode to open the file in |
| create | - whether to create the file if it doesn't exist |
Implemented in ntdv::VirtualFileSystem.
|
pure virtual |
Remove a file
| path | - path of the file |
Implemented in ntdv::VirtualFileSystem.
|
pure virtual |
Remove a directory
| path | - path of the directory |
Implemented in ntdv::VirtualFileSystem.
|
pure virtual |
Rename a file
| pathFrom | - current path of the file |
| pathTo | - new path of the file |
Implemented in ntdv::VirtualFileSystem.
|
protected |
Mount point of the file system.