implementation of admin added, animation commented out for faster testing and while loop added with exit in main()
This commit is contained in:
@@ -40,7 +40,8 @@ class Customer {
|
||||
string password;
|
||||
Vehicle_type vehicle;
|
||||
string telephone;
|
||||
Customer(string name_, string password_, Vehicle_type vehicle_, string telephone_);
|
||||
int role;
|
||||
Customer(string name_, string password_, Vehicle_type vehicle_, string telephone_, int role);
|
||||
Customer(int id_, string name_, string password_, Vehicle_type vehicle_,
|
||||
vector<Park_time> instances, string telephone_);
|
||||
void clock_in(int s_id);
|
||||
|
@@ -6,8 +6,9 @@
|
||||
using std::cin;
|
||||
|
||||
void interface(vector<Park_spot>& spots);
|
||||
void interface_member(vector<Park_spot>& spots);
|
||||
void interface_member(vector<Park_spot>& spots, Customer& c);
|
||||
void interface_admin(vector<Park_spot>& spots);
|
||||
void park(Customer& c, vector<Park_spot>& spots);
|
||||
void new_customer();
|
||||
void new_admin();
|
||||
void new_parkspot(vector<Park_spot>& spots);
|
@@ -59,6 +59,7 @@ Customer query_customer_with_id(int id);
|
||||
vector<Park_spot> populate_spots();
|
||||
|
||||
Park_spot query_parkspot_with_id(int id, vector<Park_spot>& parkspots);
|
||||
int query_role_customer(int id);
|
||||
|
||||
void reports_from_parkspot(int spotid, bool weekly = false);
|
||||
void reports_from_allparkspots(bool weekly = false);
|
||||
|
Reference in New Issue
Block a user