/* Directoryfile.h * * This is the header file for the Directoryfile data type. * */ #ifndef DIRECTORYFILE_H #define DIRECTORYFILE_H #include using namespace std; // This is the Directoryfile class // It represents a Directoryfile entry from the input file. class Directoryfile { private: int key; // the key int key_length; // set the record size, which is the sum of the lengths // of the student number field, the name field, and // extra end-of-line characters int recsize; public: // This constructor sets up the Student object. Directoryfile(); // This is the destructor for the class. virtual ~ Directoryfile(); //key accessors int getKey() const; void setKey(int); // seek to the appropriate position for reading void InputPositioningByRRN(int RRN, istream&); // seek to the appropriate position for writing void OutputPositioningByRRN(int RRN, ostream&); // read a bucket in the bucket file void readDirectoryfile(int, istream&); }; #endif