Public Member Functions | Private Attributes
rms::user_account Class Reference

#include <user_account.h>

List of all members.

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 email
std::string fname
std::string lname
rms::USER_ACCOUNT_TYPE type
int uid
std::string username

Detailed Description

A user account object to store information on a user in the RMS.

Definition at line 37 of file user_account.h.


Constructor & Destructor Documentation

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.

Parameters:
uidthe user ID of the user
usernamethe username of the user
fnamethe firstname of the user
lnamethe lastname of the user
emailthe email of the user
typethe type of user (e.g., admin, user)

Definition at line 16 of file user_account.cpp.


Member Function Documentation

Get the email of the user.

Returns:
the email of the user

Definition at line 48 of file user_account.cpp.

Get the firstname of the user.

Returns:
the firstname of the user

Definition at line 38 of file user_account.cpp.

Get the lastname of the user.

Returns:
the lastname of the user

Definition at line 43 of file user_account.cpp.

Get the type of the user.

Returns:
the type of the user

Definition at line 53 of file user_account.cpp.

Get the user ID of the user.

Returns:
the user ID of the user

Definition at line 28 of file user_account.cpp.

Get the username of the user.

Returns:
the username of the user

Definition at line 33 of file user_account.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files:


rmscpp
Author(s): Russell Toris
autogenerated on Sat Dec 28 2013 17:08:58