#ifndef ITEM_H #define ITEM_H #include #include #include using namespace std; enum Var{ITEM, TYPE, AUTHOR, OWNER, AVAIL, PRICE, FIN}; class Item { public: Item();//default constructor Item(Item &);//copy constructor bool Set(ifstream &);//takes input filestream to fill Item data void Delete();//resets all data to default variables and isEmpty to true void Print(ofstream &, bool );//prints Item data out in specified format string owner();//returns the email address of the owner bool IsEmpty();//returns the status of the Item void operator =(Item &);//overloaded assignment operator private: string item, Type, Author, Owner, Available; double Price; bool isEmpty; Var ConvertVar(string &);//utility function that converts the string variable to the enum above for a switch }; #endif