-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMember.h
38 lines (34 loc) · 1.04 KB
/
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
#pragma once
#include <vector>
#include "RegisterUser.h"
#include "Book.h"
#include "Collection.h"
using namespace std;
class Library;
#ifndef MEMBER_H
#define MEMBER_H
class Member : public RegisterUser {
private:
int startYear;
int endYear;
vector<Book*> borrowList;
vector<Collection*> subscribedCollections;
public:
Member(string userName, string password, string phoneNumber, string fullName);
Member(string userName, string password, string phoneNumber, string fullName, int startYear, int endYear);
~Member();
void setStartYear(int sy);
void setEndYear(int ey);
int getStartYear();
int getEndYear();
void borrow(Book* b, Library* l);
void returnBook(Book* b, Library* l);
void subscribe(Collection* c);
void unsubscribe(Collection* c);
Collection* searchCollection(string name, Library* l);
int getBorrowNumber();
void displayCollectionList(bool onlySubscribed);
void displayBorrowList();
bool isSubcribe(Collection* c, Library* l);
};
#endif