#ifndef QUERY_H #define QUERY_H #pragma once #include "Park_spot.h" #include using std::pair; /*these are the functions that search the database and create objects from it. query_parktimes_for_customer searches for the parktimes that are needed in customer initialisaiton. generally, i see no use outside of that. query_customer_with_name searches for customer data by name. NOTE: query_customer_with_name has been removed, nothing is using it query_customer_with_id does what the above does, but with id. query_parkspot_with_id does what the above do, but with a vector and not to the db. populate_spots is used to query for all the park_spots in db and return them in a vector. We can keep that in memory to reduce calls to the db, but increasing the memory footprint of this program reports_from_x functions query the db for parktimes with various conditions current_status_parkspots takes in a vector and outputs the status of them */ vector query_parktimes_for_customer(int cid); Customer query_customer_with_id(int id); Park_spot query_parkspot_with_id(int id, vector& parkspots); int query_role_customer(int id); vector populate_spots(); void reports_from_parkspot(int spotid, pair period); void reports_from_allparkspots(pair period); void current_status_parkspots(vector& spots); vector reports_from_customer(int cid, pair period); #endif // CUSTOMER_H