#ifndef _DATABASE_H_ #define _DATABASE_H_ #include #include #include #include using std::string; using std::cout; using std::ostream; using std::endl; using std::ifstream; using std::ws; using std::getline; #include "student.h" #include "item.h" /////////////////////////////////////////////////////////////////////////////// // // Class Definition: // DataBase // // This class will be used to hold an array of the student and items. It will provide the following // functions: // 1.) Able to Add student or item information // 2.) Able to Delete a student and all of the student's item // 3.) Able to print a student's information along with its items, print all items, or print // all the students // class DataBase { private: Student StudentList[100]; Item ItemList[100]; public: DataBase(); void PrintAllStudents(ostream & outFile) const; void PrintAllItems(ostream & outFile) const; void PrintEmail(ostream & outFile, string emailin) const; void AddItem(ostream & outFile, string namein, string typein, string authorin, string ownerin, string pricein, string availabilityin); void AddStudent(ostream & outFile, string namein, string phonein, string emailin, string streetaddyin, string aptnumberin, string cityin, string statein, string zipcodein, string otherin); void DeleteEmail(ostream & outFile, string emailin); }; #endif