#ifndef _ROSTER_H_ #define _ROSTER_H_ #include "mystring.h" class Name { public: Name(string fname, string lname); Name(const Name &); bool isEqual(Name key); // returns true if the parameter key matches // this object's name bool lessThan(Name key); // returns true if this object's name is less // than the parameter key. int hash(int tableSize); // returns a hash value for the name }; class RosterRecord { public: RosterRecord(string lname, string fname, string ht, string pos, string yr, string player_team, string home); string getLastName(); // returns the player's last name // returns the player's first name string getFirstName(); string getHeight(); // returns the player's height string getPosition(); // returns the player's position string getYear(); // returns the player's year string getTeam(); // returns the player's team string getHometown(); // returns the player's hometown // packages the last name and first name into a name object and returns it Name getKey(); }; #endif