can save to db
This commit is contained in:
@ -12,12 +12,12 @@
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
// enum type is basically een manier om categories te representen als een integer in the background, maar om t in code
|
||||
// aan te geven als de actual category.
|
||||
// will make it easy to represent it in the database while making it easy to use while programming
|
||||
enum class Verhicle_type {
|
||||
small = 1,
|
||||
medium = 2,
|
||||
large = 3,
|
||||
bike = 1,
|
||||
small_car = 2,
|
||||
suv = 3,
|
||||
pickup = 4
|
||||
};
|
||||
|
||||
/*
|
||||
@ -43,15 +43,13 @@ class Customer {
|
||||
void update_db();
|
||||
void delete_db();
|
||||
|
||||
// void gen_weekly(); TODO: this
|
||||
void gen_monthly();
|
||||
void gen_monthly(); // remove, make it a function in data
|
||||
|
||||
private:
|
||||
Verhicle_type verhicle;
|
||||
vector<Park_time> park_instances;
|
||||
|
||||
string gen_cardcode();
|
||||
|
||||
void save_db();
|
||||
int auto_increment_db();
|
||||
};
|
||||
|
Reference in New Issue
Block a user