Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Directory Class Reference

#include <Directory.h>

Collaboration diagram for Directory:

Collaboration graph
[legend]

Public Member Functions

 Directory (FAT &fat)
 Create a new directory helper object from the root directory of the FAT.
bool empty ()
 Checks if the directory is empty.
int chdir (const char *path)
 Change the current directory by searching down the path.
int mkdir (const FileName &name)
 Create a new directory in the current directory.
bool exists (const FileName &name) const
 Check if a file or directory exists in the current directory.
int erase (const FileName &name)
 Erase a file or directory from the current directory.
const FCBget_fcb (const FileName &name) const
 Get the FCB of a file in the current directory.
void set_fcb (const FileName &name, const FCB &fcb)
 Set the FCB for a file in the current directory.
void list ()
 List the current directory.

Detailed Description

Directory helper object.

Stores directory information obtained from disk. The root directory is assumed to be located right after the FAT on disk. A search starts at the root directory and recursively moves down a path. The directory object is used to obtain and set file FCBs, list directory content, create directory entries, erase directory entries, and more.

Definition at line 35 of file Directory.h.


The documentation for this class was generated from the following files:
Generated on Fri Mar 24 14:26:15 2006 for COP4610 Project 3 by doxygen 1.3.8