can save to db

This commit is contained in:
TinyAtoms
2019-06-29 22:48:49 -03:00
parent c058783a11
commit 97ed3150ec
6 changed files with 25 additions and 24 deletions

View File

@ -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){