Merge branch 'brandondev' of https://github.tamu.edu/scho4077/DMS
This commit is contained in:
commit
1c59a13009
1 changed files with 44 additions and 0 deletions
44
User.h
Normal file
44
User.h
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
#include <fstream>
|
||||||
|
#include <iostream>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
class User {
|
||||||
|
string name;
|
||||||
|
string password;
|
||||||
|
string phone_number;
|
||||||
|
string fax_number;
|
||||||
|
string postal_address;
|
||||||
|
vector<string> groups;
|
||||||
|
vector<string> messages;
|
||||||
|
|
||||||
|
bool is_admin;
|
||||||
|
bool is_logged_in;
|
||||||
|
|
||||||
|
public:
|
||||||
|
User();
|
||||||
|
User(string n, string pass, string phone, string fax, string postal, bool admin);
|
||||||
|
string getName();
|
||||||
|
string getPassword();
|
||||||
|
string getPhoneNumber();
|
||||||
|
string getFaxNumber();
|
||||||
|
string getPostalAddress();
|
||||||
|
vector<string> getGroups();
|
||||||
|
vector<string> getMessages();
|
||||||
|
bool confirmAdmin();
|
||||||
|
bool checkLogin();
|
||||||
|
void setName(string new_name);
|
||||||
|
void setPassword(string new_name);
|
||||||
|
void setPhone(string new_phone);
|
||||||
|
void setFax(string new_fax);
|
||||||
|
void setPostal(string new_postal);
|
||||||
|
};
|
||||||
|
|
||||||
|
class Message {
|
||||||
|
string timestamp;
|
||||||
|
string text;
|
||||||
|
|
||||||
|
public:
|
||||||
|
Message();
|
||||||
|
Message(string time, string t);
|
||||||
|
};
|
||||||
|
|
Reference in a new issue