Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

MFileSystem Class Reference

The class that manages one filesystem (file). More...

#include <Mfs.h>

List of all members.

Public Member Functions

 MFileSystem (char *File=0)
 Constructor.
virtual ~MFileSystem ()
 Destructor.
bool CreateNewSystem (char *File)
 Create a new file system in a file.
bool OpenSystem (char *File)
 Open an existing file system.
bool CloseSystem ()
 Close the current file system.
char * GetCurrentFile ()
 Returns the current volume file name.
bool Commit ()
 Commits all outstanding changes to metadata.
bool CreateFolder (char *Path)
 Creates a new folder or ignores the existing one.
bool DeleteFolder (char *Path)
 Deletes an existing folder.
bool DeleteFile (char *File)
 Deletes the given file in the file system.
bool MoveFile (char *To, char *From, int64 *Progress=0)
 Moves a file to a new location.
bool CopyFile (char *To, char *From, int64 *Progress=0)
 Copies a file to a new location.

Friends

class MFileQuery
class MMetaData
class MFile


Detailed Description

The class that manages one filesystem (file).

/file /author Matthew Allen /brief A filesystem in a file.

This library takes some things from various popular filesystems such as BeOS's BFS and Linux's Reiser4 and combines them at a simple level to create a lightweight file system with transactions, arbitary indexed metadata, live queries and small code size. What it doesn't attempt to do is be blindingly fast or useful to everyone. Neither does it try and be a real filesystem in a block device. It stores data in a file, like a database would.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:47:05 2005 for Lgi by  doxygen 1.4.1