// Project II for CS 1704 Spring 2004 // // Programmer: Kyle Loder // OS: Windows XP Professional // System: Pentium IV 2.6 GHz, 512 MB Memory // Compiler: Visual Studio .NET 2003 // Last modified: February 23rd, 2004 // // This class represents an item in the mediaLibrary // #ifndef ITEM #define ITEM #include #include #include using namespace std; using std::string; using std::ifstream; class Item { public: Item (); //default constructor string getOwner (); //returns the owner's e-mail address of the item void setTitle (const string &Title); //sets the title of the item void setType (const string &Type); //sets the media type of the item void setArtist (const string &Artist); //sets the artist of the item void setOwner (const string &Owner); //sets the owner of the item void setPrice (const string &Price); //sets the price of the item void setAvailability(const string &Availability); //sets the availability of the item void printItem (ofstream &Log, bool studentItem); //print the item formatted to a file bool operator == (const Item &RHS); //equal to operator bool operator != (const Item &RHS); //not equal to operator private: string myTitle, myType, myArtist, myOwner, myPrice, myAvailability; }; #endif