can save to db
This commit is contained in:
@ -1,5 +1,9 @@
|
||||
#include "headers/Park_spot.h"
|
||||
|
||||
|
||||
|
||||
// constructors
|
||||
|
||||
Park_spot::Park_spot(){
|
||||
parked = nullptr;
|
||||
id = auto_increment_db() + 1;
|
||||
@ -7,6 +11,8 @@ Park_spot::Park_spot(){
|
||||
save_db();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// clock in en out, calls de juist(in/out) van de customer aan de hand van internal state van taken
|
||||
void Park_spot::clock(Customer* c_customer){
|
||||
if (!taken){
|
||||
|
Reference in New Issue
Block a user