Parkmanne/headers/Customer.h
2019-05-28 18:02:52 -03:00

37 lines
591 B
C++

#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