added a park interface
This commit is contained in:
@@ -43,6 +43,8 @@ class Customer {
|
||||
vector<Park_time> instances);
|
||||
void clock_in(int s_id);
|
||||
void clock_out(int s_id);
|
||||
bool parked();
|
||||
int parked_at();
|
||||
|
||||
void update_db();
|
||||
void delete_db();
|
||||
|
@@ -4,6 +4,9 @@
|
||||
|
||||
using std::cin;
|
||||
|
||||
void interface();
|
||||
void interface_member();
|
||||
void interface_admin();
|
||||
|
||||
|
||||
void interface(vector<Park_spot>& spots);
|
||||
void interface_member(vector<Park_spot>& spots);
|
||||
void interface_admin(vector<Park_spot>& spots);
|
||||
void park(Customer& c, vector<Park_spot>& spots);
|
@@ -5,6 +5,7 @@
|
||||
#include "data.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
#include <ctime>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
@@ -63,4 +64,8 @@ class Park_time {
|
||||
int start_to_int(); // helper
|
||||
};
|
||||
|
||||
|
||||
//test funciton
|
||||
void Wait(int sec);
|
||||
|
||||
#endif // Park_time
|
@@ -57,4 +57,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);
|
||||
|
||||
|
||||
#endif // CUSTOMER_H
|
Reference in New Issue
Block a user