// Project 2 for CS 1704 Spring 2004 // // Programmer: Robert Houtman // OS: Windows XP Professional // Last modified: 24 FEB 2004 // // Purpose // This program reads a list of students and multimedia collections that // each student has. // // The program then gets commands from an input file to manage the // database. // #ifndef ITEMINFO_H #define ITEMINFO_H #include #include using namespace std; class ItemInfo { private: string Item; //holds item name string Price; //holds price of item string Type; //Holds media type info string Artist; //holds artist info string Availability; //holds availability info string Owner; //holds owner's email address public: //The following are the constructors for this class ItemInfo(); //default constructor void ItemInfoSet(ifstream& iFile, string category); //Constructor for given information //The following are the mutators for this class bool AddanItem(stringstream& Input); //Adds a new item to the next empty array member void RemoveItem(); //Deletes item info //The following are the accessors for this class bool fulloremptytest(); //returns true if object is full and false if it is empty bool Email(string email); //tests if the inputted email is the same as the object's email void PrintItem(ofstream& oFile, bool All); //Prints student information }; #endif