Parkmanne/headers/Park_spot.h

19 lines
341 B
C
Raw Normal View History

2019-05-28 16:46:55 +00:00
#include "Customer.h"
/*
db representation:
int id not null
bool taken not null
int customer_id (null) (many to one, foreign key, whatever)
*/
class Park_spot {
public:
int id;
bool taken;
2019-05-28 16:57:33 +00:00
Customer* parked; //TODO: think about memory management
2019-05-28 16:46:55 +00:00
Park_spot(int id_);
void clock(Customer* c_customer);
private:
2019-05-28 16:57:33 +00:00
};