#include <user_account.h>
Public Member Functions | |
std::string | get_email () |
std::string | get_firstname () |
std::string | get_lastname () |
rms::USER_ACCOUNT_TYPE | get_type () |
int | get_userid () |
std::string | get_username () |
user_account (int uid, std::string username, std::string fname, std::string lname, std::string email, rms::USER_ACCOUNT_TYPE type) | |
Private Attributes | |
std::string | |
std::string | fname |
std::string | lname |
rms::USER_ACCOUNT_TYPE | type |
int | uid |
std::string | username |
A user account object to store information on a user in the RMS.
Definition at line 37 of file user_account.h.
user_account::user_account | ( | int | uid, |
std::string | username, | ||
std::string | fname, | ||
std::string | lname, | ||
std::string | email, | ||
rms::USER_ACCOUNT_TYPE | type | ||
) |
Creates a user account object with the given information.
uid | the user ID of the user |
username | the username of the user |
fname | the firstname of the user |
lname | the lastname of the user |
the email of the user | |
type | the type of user (e.g., admin, user) |
Definition at line 16 of file user_account.cpp.
string user_account::get_email | ( | ) |
Get the email of the user.
Definition at line 48 of file user_account.cpp.
string user_account::get_firstname | ( | ) |
Get the firstname of the user.
Definition at line 38 of file user_account.cpp.
string user_account::get_lastname | ( | ) |
Get the lastname of the user.
Definition at line 43 of file user_account.cpp.
Get the type of the user.
Definition at line 53 of file user_account.cpp.
int user_account::get_userid | ( | ) |
Get the user ID of the user.
Definition at line 28 of file user_account.cpp.
string user_account::get_username | ( | ) |
Get the username of the user.
Definition at line 33 of file user_account.cpp.
std::string rms::user_account::email [private] |
the username, first and last names and email
Definition at line 86 of file user_account.h.
std::string rms::user_account::fname [private] |
Definition at line 86 of file user_account.h.
std::string rms::user_account::lname [private] |
Definition at line 86 of file user_account.h.
the type of user the
Definition at line 87 of file user_account.h.
int rms::user_account::uid [private] |
the user ID
Definition at line 85 of file user_account.h.
std::string rms::user_account::username [private] |
Definition at line 86 of file user_account.h.