The Pedigree Project
0.1
|
#include <RamFs.h>
Public Member Functions | |
virtual bool | initialise (Disk *pDisk) |
void | setProcessOwnership (bool bEnable) |
bool | getProcessOwnership () const |
virtual File * | getRoot () const |
virtual String | getVolumeLabel () const |
Public Member Functions inherited from Filesystem | |
Filesystem () | |
virtual | ~Filesystem () |
virtual File * | find (const StringView &path) |
virtual File * | find (const String &path) |
virtual File * | find (const StringView &path, File *pStartNode) |
virtual File * | find (const String &path, File *pStartNode) |
bool | createFile (const StringView &path, uint32_t mask, File *pStartNode=0) |
bool | createDirectory (const StringView &path, uint32_t mask, File *pStartNode=0) |
bool | createSymlink (const StringView &path, const String &value, File *pStartNode=0) |
bool | createLink (const StringView &path, File *target, File *pStartNode=0) |
bool | remove (const StringView &path, File *pStartNode=0) |
Disk * | getDisk () |
bool | isReadOnly () |
virtual bool | isCaseSensitive () |
Protected Member Functions | |
virtual bool | createFile (File *parent, const String &filename, uint32_t mask) |
virtual bool | createDirectory (File *parent, const String &filename, uint32_t mask) |
virtual bool | createSymlink (File *parent, const String &filename, const String &value) |
virtual bool | remove (File *parent, File *file) |
RamFs (const RamFs &) | |
void | operator= (const RamFs &) |
Protected Member Functions inherited from Filesystem | |
virtual bool | createLink (File *parent, const String &filename, File *target) |
Protected Attributes | |
File * | m_pRoot |
bool | m_bProcessOwners |
Protected Attributes inherited from Filesystem | |
bool | m_bReadOnly |
Disk * | m_pDisk |
Static Protected Attributes | |
static String | m_VolumeLabel |
Additional Inherited Members | |
Public Types inherited from Filesystem | |
typedef Filesystem *(* | ProbeCallback) (Disk *) |
|
protectedvirtual |
createDirectory calls this after it has parsed the string path.
Implements Filesystem.
Definition at line 157 of file RamFs.cc.
References File::isDirectory().
createFile calls this after it has parsed the string path.
Implements Filesystem.
Definition at line 146 of file RamFs.cc.
References File::isDirectory().
|
protectedvirtual |
createSymlink calls this after it has parsed the string path.
Implements Filesystem.
|
inlinevirtual |
|
inlinevirtual |
Returns a string identifying the volume label.
Implements Filesystem.
Definition at line 108 of file RamFs.h.
References Filesystem::createDirectory(), Filesystem::createFile(), Filesystem::createSymlink(), and Filesystem::operator=().
|
virtual |
Populates this filesystem with data from the given Disk device.
Implements Filesystem.
Definition at line 139 of file RamFs.cc.
References RadixTree< T >::m_pRoot.
Remove a file given a parent and file, assuming path parsing already completed.
Implements Filesystem.
Definition at line 174 of file RamFs.cc.
References File::isDirectory().