Advertisement
Guest User

User.h

a guest
Mar 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.33 KB | None | 0 0
  1. /*
  2.  * User.h
  3.  *
  4.  *  
  5.  *      
  6.  */
  7.  
  8. #ifndef USER_H_
  9. #define USER_H_
  10.  
  11. //#include <string>
  12. #include "List.h"
  13. #include "BST.h"
  14.  
  15. class User
  16. {
  17. private:
  18.     string firstName;
  19.     string lastName;
  20.     string userName;
  21.     string passWord;
  22.     string city;
  23.     string state;
  24.     unsigned ID;
  25.     List<string> friends;
  26.     BST<string> friendBST;
  27.     List<string> interests;
  28.  
  29. public:
  30.     /**Constructors*/
  31.     User();
  32.     User(string f, string l, string u, string p, string c, string s, unsigned id);
  33.  
  34.     /**Access Functions*/
  35.  
  36.     string getFirstname() const;
  37.     string getLastname() const;
  38.     string getUsername() const;
  39.     string getPassword() const;
  40.     string getCity() const;
  41.     string getState() const;
  42.     bool searchFriend(string name) const;
  43.     unsigned getID() const;
  44.     List<string> getInterest() const;
  45.     List<string> getFriend() const;
  46.     void printFriends() const;
  47.  
  48.  
  49.     /**Manipulation Procedures*/
  50.     void setFirstname(string f);
  51.     void setLastname(string l);
  52.     void setUsername(string u);
  53.     void setPassword(string p);
  54.     void setCity(string c);
  55.     void setState(string s);
  56.     void setFriends(string fr);
  57.     void setInterests(string i);
  58.  
  59.  
  60.     /**Additional Functions*/
  61.     friend ostream& operator<<(ostream & out, const User& user);
  62.     bool operator==(const User& user);
  63.     bool operator<(const User& user);
  64.     bool operator>(const User& user);
  65.  
  66. };
  67.  
  68.  
  69.  
  70. #endif /* USER_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement