// Project 2 for CS 1704 Spring 2004 // // Programmer: Deborah A Thompson // OS: Windows XP Professional // System: Pentium III 500, 256 MB Memory // Compiler: Visual C++ 6.0, Service Pack 4 // Last modified: Febraury 23, 2004 // // Purpose: The organizer call will manage the first two // classes by storing an array of students and an array of // multimedia items. This class will initially open two files. #ifndef ORGANIZER_H #define ORGANIZER_H #include #include #include "Item.h" #include "Student.h" using namespace std; class Organizer { public: //constructor - reads data files Organizer(); //deconstructor ~Organizer(); //set default values of students void SetDefault(); //set address of student void SetAddress(bool inEntry, string& inStreet,string& inApt,string& inCity,string& inState, string& inZip); //print values of all students void pStudent(ofstream& Log); //print item of one or all students void pItem(ofstream& Log, string& Cemail); //add item to item array void addItem(ofstream& Log, string& Citem, string& Ctype, string& Cauthor, string& Cowner, string& Cprice, string& Cstatus); //add student to student array void aStudent(ofstream& Log, string& Cname, string& Cphone, string& Cemail, Address& Caddress, string& Cother); //delete student corresponsing items void Delete(ofstream& Log, string& Cemail); //quit void Quit(ofstream& Log); //set default values of item void SetDefaultItem(); private: Student aStud[100]; //creates student array Item aItem[100]; //creates item array int SCounter; //student counter int ICounter; //item counter string inName, inEmail, inOther; // student's name, email, other string inPhone; // student's phone number Address inAddress; //student's address string inItem, //item name inType, //item type inAuthor, //item author inOwner, //item owner inPrice; //item price bool inEntry; //address entered or not string inStatus; //item status }; #endif