Parkmanne/headers/Interface.h

27 lines
725 B
C
Raw Normal View History

2019-07-06 14:52:01 +00:00
#include "Query.h"
2019-07-22 12:51:47 +00:00
#include <stdlib.h>
#include <synchapi.h>
2019-07-06 14:52:01 +00:00
2019-07-08 20:57:09 +00:00
using std::cin;
2019-07-06 16:32:00 +00:00
2019-07-22 12:51:47 +00:00
//interface functions
2019-07-06 16:32:00 +00:00
void interface(vector<Park_spot>& spots);
void interface_member(vector<Park_spot>& spots, Customer& c);
2019-07-06 16:32:00 +00:00
void interface_admin(vector<Park_spot>& spots);
2019-07-08 20:57:09 +00:00
void park(Customer& c, vector<Park_spot>& spots);
void new_customer();
void new_admin();
2019-07-20 23:32:47 +00:00
void new_parkspot(vector<Park_spot>& spots);
2019-07-22 12:51:47 +00:00
void edit_information(Customer&);
2019-07-20 23:32:47 +00:00
// time creation
pair<int, int> create_month_period();
2019-07-20 23:32:47 +00:00
pair<int, int> create_week_period();
2019-07-22 12:51:47 +00:00
// report functions
void report_single_spot(bool weekly = false);
2019-07-22 00:25:51 +00:00
void report_all_spots(bool weekly = false);
void report_customer(int customerID, bool weekly = false);
2019-07-22 11:48:17 +00:00
2019-07-22 12:51:47 +00:00
// confirmation function
bool confirm();