This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
dmspine64backup/User.h

48 lines
931 B
C
Raw Normal View History

2015-09-30 17:22:27 -05:00
#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);
};
2015-09-30 17:32:43 -05:00
<<<<<<< HEAD
2015-09-30 17:22:27 -05:00
2015-09-30 17:32:43 -05:00
=======
>>>>>>> a478d7914de8de7750d1c877475def9cfb3ac83b