00001 00011 #ifndef USERACCOUNT_H_ 00012 #define USERACCOUNT_H_ 00013 00014 #include <string> 00015 00020 namespace rms 00021 { 00026 enum USER_ACCOUNT_TYPE 00027 { 00028 ADMIN, USER 00029 }; 00030 00037 class user_account 00038 { 00039 public: 00050 user_account(int uid, std::string username, std::string fname, std::string lname, 00051 std::string email, rms::USER_ACCOUNT_TYPE type); 00052 00057 int get_userid(); 00062 std::string get_username(); 00067 std::string get_firstname(); 00072 std::string get_lastname(); 00077 std::string get_email(); 00082 rms::USER_ACCOUNT_TYPE get_type(); 00083 00084 private: 00085 int uid; 00086 std::string username, fname, lname, email; 00087 rms::USER_ACCOUNT_TYPE type; 00088 }; 00089 } 00090 00091 #endif