-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMember.h
executable file
·60 lines (38 loc) · 968 Bytes
/
Member.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// Created by nikang on 12/22/16.
//
#ifndef AP_MEMBER_H
#define AP_MEMBER_H
#include <iostream>
#include <set>
#include "Bill.h"
#include "Date.h"
#include "Transaction.h"
class Bill;
class Date;
class Transaction;
using namespace std;
class Member {
long member_id;
int number_of_book_issued;
int max_book_limit;
string name;
Date *date_of_membership;
vector<Transaction *> transactions;
Bill *bill;
bool is_deleted;
public:
Member(const string &name, Date *date_of_membership);
long getMember_id() const;
int getNumber_of_book_issued() const;
int getMax_book_limit() const;
const string &getName() const;
string remove();
bool isIs_deleted() const;
Date *getDate_of_membership() const;
Bill *getBill() const;
const vector<Transaction *> &getTransactions() const;
void borrowing(Transaction *transaction);
void return_book(double late);
};
#endif //AP_MEMBER_H