2019-05-28 16:46:55 +00:00
|
|
|
#ifndef CUSTOMER_H
|
|
|
|
#define CUSTOMER_H
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
#include "Park_time.h"
|
|
|
|
|
|
|
|
using std::vector;
|
|
|
|
using std::string;
|
|
|
|
|
|
|
|
/*
|
|
|
|
db repr of Customer
|
|
|
|
int id (not null, auto increment)
|
|
|
|
string name (not nulll)
|
|
|
|
string card_code (not null)
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
class Customer {
|
|
|
|
public:
|
|
|
|
int id;
|
|
|
|
string name;
|
|
|
|
string card_code;
|
|
|
|
void clock_in(int s_id);
|
|
|
|
void clock_out(int s_id);
|
2019-05-28 16:57:33 +00:00
|
|
|
// void gen_weekly(); TODO: this
|
2019-05-28 16:46:55 +00:00
|
|
|
void gen_monthly();
|
|
|
|
Customer(int id_, string name_, string card_code_);
|
|
|
|
|
|
|
|
private:
|
|
|
|
vector<Park_time> park_instances;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // CUSTOMER_H
|