Init
This commit is contained in:
24
data.h
Normal file
24
data.h
Normal 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
|
||||
Reference in New Issue
Block a user