[ RCOS.java Home | RCOS Home | David's Home ]
Name: |
DirectoryEntry |
Comment: |
The following class defines a "directory entry", representing a file
in the directory. Each entry gives the name of the file, and where
the file's header is to be found on disk.
Internal data structures kept public so that Directory operations can access them directly. |
Collaborators: |
class DirectoryEntry { public: bool inUse; // Is this directory entry in use? int sector; // Location on disk to find the // FileHeader for this file char name[FileNameMaxLen + 1]; // Text name for file, with +1 for // the trailing '\0' };