-
Notifications
You must be signed in to change notification settings - Fork 0
/
Library.h
54 lines (45 loc) · 1.13 KB
/
Library.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
#ifndef LIBRARY_H
#define LIBRARY_H
#include "Book.h"
#include "Member.h"
#include "Transaction.h"
#include <vector>
/**
* @class Library
* @brief Manages books, members, and transactions within the library.
*/
class Library {
private:
std::vector<Book> books;
std::vector<Member> members;
std::vector<Transaction> transactions;
public:
/**
* @brief Adds a book to the library's collection.
* @param book The book to add.
*/
void addBook(const Book& book);
/**
* @brief Adds a member to the library.
* @param member The member to add.
*/
void addMember(const Member& member);
/**
* @brief Records a transaction in the library.
* @param transaction The transaction to record.
*/
void addTransaction(const Transaction& transaction);
/**
* @brief Displays all books in the library.
*/
void displayBooks() const;
/**
* @brief Displays all members of the library.
*/
void displayMembers() const;
/**
* @brief Displays all transactions in the library.
*/
void displayTransactions() const;
};
#endif // LIBRARY_H