This commit is contained in:
2025-04-15 18:38:03 +08:00
commit 23537c3ae9
12 changed files with 799 additions and 0 deletions

24
data.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef COURSE_DESIGN_DATA_H_
#define COURSE_DESIGN_DATA_H_
#include "tools.h"
#include <sqlite3.h>
using namespace std;
struct PAStruct {
int id;
string car_id;
string in_pa_time;
string out_pa_time;
int define_in_pa;
};
void init_pa_data(sqlite3 *db);
void register_pa_car(sqlite3 *db, const string &car_id);
vector<PAStruct> get_pa_cars(sqlite3 *db);
vector<PAStruct> get_pa_leftcars(sqlite3 *db);
bool car_leave_func(sqlite3 *db, int id);
bool delete_pa_car(sqlite3 *db, int id);
#endif