ALL objects can be saved to db now

This commit is contained in:
TinyAtoms
2019-06-29 22:30:47 -03:00
parent 0eee67d3d9
commit c058783a11
6 changed files with 76 additions and 10 deletions

View File

@ -15,7 +15,11 @@ class Park_spot {
int id;
bool taken;
Customer* parked; //TODO: think about memory management
Park_spot(int id_);
Park_spot();
void clock(Customer* c_customer);
private:
void save_db();
void update_db();
void delete_db();
int auto_increment_db();
};