// Martian Adam Smyth // CS510 Assignment 1 // Element Class Header definition file #ifndef _ELEMENT_H #define _ELEMENT_H #include class Element { private: char *key; public: Element(void) {key=0;}; Element(const char *n) {key=strdup(n);} ~Element(void); int setkey(const char *str); char* getkey(void) {return key;}; // Compare to another Element int operator<(const Element &); int operator>(const Element &); int operator==(const Element &); int operator!=(const Element &); // Compare to a string int operator<(const char *); int operator>(const char *); int operator==(const char *); int operator!=(const char *); }; #endif