#ifndef CATALOG_H #define CATALOG_H #include #include #include using std::string; using std::istream; using std::ifstream; using std::ofstream; using std::endl; #include "Student.h" #include "Item.h" class Catalog { private: Student students[100]; Item items[100]; ofstream out; void readStudents(istream& in); void readItems(istream& in); void readCommands(istream& in); bool readStudent(istream& in, Student& student); bool readItem(istream& in, Item& item); int findStudent(string email); int findItem(string email, int start=0); public: Catalog(); void printStudents(); void printItems(); void printStudent(string email); void addItem(const Item& item, bool log=true); void addStudent(const Student& student, bool log=true); void deleteStudent(string email); }; #endif