-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibrary.h
More file actions
42 lines (33 loc) · 824 Bytes
/
Copy pathLibrary.h
File metadata and controls
42 lines (33 loc) · 824 Bytes
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
#ifndef LIBRARY_H
#define LIBRARY_H
#include <vector>
#include <map>
#include "Book.h"
#include "Member.h"
#include "Transaction.h"
using namespace std;
class Library {
private:
vector<Book> books;
vector<Member> members;
vector<Transaction> transactions;
public:
void addBook(Book book);
void addMember(Member member);
void addTransaction(Transaction transaction);
void displayAllBooks();
void displayAllMembers();
void displayAllTransactions();
void deleteBook(int id);
void searchBook(int id);
void searchMember(int id);
void issueBook(int bookId, int memberId, string issueDate);
void returnBook(int transactionId);
void saveBooks();
void loadBooks();
void saveMembers();
void loadMembers();
void saveTransactions();
void loadTransactions();
};
#endif