// Project 2 for CS 1704 Spring 2004 // // Programmer: Phil Wallace // OS: Windows XP Professional // System: Pentium 4 2200, 768 MB Memory // Compiler: Visual C++ .NET // Last modified: February 22, 2004 // // Purpose: // The purpose of this class is to store data on a type of media // the user inputs /* On my honor: - I have not discussed the C++ language code in my program with anyone other than my instructor or the teaching assistants assigned to this course. - I have not used C++ language code obtained from another student, or any other unauthorized source, either modified or unmodified. - If any C++ language code or documentation used in my program was obtained from another source, such as a textbook or course notes, that has been clearly noted with a proper citation in the comments of my program. - I have not designed this program in such a way as to defeat or interfere with the normal operation of the Curator System. Phil Wallace*/ #ifndef ITEM_H #define ITEM_H #include #include using namespace std; class item{ public: item(); //constructor //sets name field void set_name(string x){ name = x;} //sets media field void set_media(string x){ media = x;} //sets author field void set_author(string x){ author = x;} //sets owner field void set_owner(string x){ owner = x;} //sets price field void set_price(string x){ price = x;} //sets availability field void set_avail(string x){ available = x;} //returns name string get_name(){return name;} //returns media string get_media(){return media;} //returns author string get_author(){return author;} //returns owner string get_owner(){return owner;} //returns price string get_price(){return price;} //returns availability string get_avail(){return available;} //cleans up an entry void icleanup(); //overloaded == bool operator==(item &RHS); private: string name; //name of item string media; //media type string author; //author of media string owner; //owner of media string price; //price of media string available; //availability of media }; #endif