Structure change
This commit is contained in:
37
headers/Customer.h
Normal file
37
headers/Customer.h
Normal file
@ -0,0 +1,37 @@
|
||||
#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);
|
||||
// void gen_weekly(); TODO: this
|
||||
void gen_monthly();
|
||||
Customer(int id_, string name_, string card_code_);
|
||||
|
||||
private:
|
||||
vector<Park_time> park_instances;
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // CUSTOMER_H
|
Reference in New Issue
Block a user