#ifndef CONTROLLER_H #define CONTROLLER_H //============================================================================ /* This class that will manage the first two classes by storing an array of students and an array of multimedia items. This class will initially two files. The first will be a list of students with accompanying information named "students.data". The second file will be a list of multimedia items named "items.data". Additionally, this class will provide methods that implement the commands such as print student, print item, print , add student, add item, delete, and quit */ //============================================================================ // includes #include "StudentInfo.h" #include "ItemInfo.h" #include #include using namespace std; // constants const int ARRAYSIZE = 100; // class definition class Controller{ public: // default constructor Controller(); // Reporters void PrintStudents(ofstream&); //print student informations void PrintItems(ofstream&); // print items // print and student items info void IndividualStatus(ofstream&, const string); // Mutators bool Delete(const string); // delete students bool AddItem(ItemInfo); // add items to the array bool AddStudent(StudentInfo); // add student to array private: // This is the array of student info structs StudentInfo myStudents[ARRAYSIZE]; ItemInfo myItems[ARRAYSIZE]; // declare the first empty student and item cells int firstEmptyStudentCell; int firstEmptyItemCell; //mutator void LoadItems(ifstream&); void LoadStudents(ifstream&); }; #endif