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)
|
2019-06-20 11:08:02 +00:00
|
|
|
|
|
|
|
Dit representeert een parkeerplaats. Het heeft als internal state alleen dat t bezet is of niet.
|
2019-05-28 16:46:55 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
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
|
|
|
};
|