-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBook.h
More file actions
41 lines (38 loc) · 897 Bytes
/
Book.h
File metadata and controls
41 lines (38 loc) · 897 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
#ifndef MYNAMESPACE_BOOK_H
#define MYNAMESPACE_BOOK_H
#include "MyNamespace.h"
#include "Date.h"
#include "Member.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <limits>
namespace MyNamespace {
class Date;
class Member;
class Book {
private:
int bookID;
std::string bookName;
std::string authorFirstName;
std::string authorLastName;
std::string bookType;
Date* dueDate;
Member* borrower;
public:
~Book();
Book(int bookId, std::string bookN, std::string authFirstN, std::string authLastN);
std::string getBookID() const;
std::string getBookName();
std::string getAuthorFirstName();
std::string getAuthorLastName();
void resetDaysSetFlag();
int determineNumOfDays();
int chooseAnotherDate();
Date getDueDate();
void setDueDate(Date* dueDate);
void returnBook();
void borrowBook(Member &burrower, Date dueDate);
};
}
#endif