-
Notifications
You must be signed in to change notification settings - Fork 0
/
library.h
37 lines (30 loc) · 902 Bytes
/
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
#ifndef LIBRARY_H_INCLUDED
#define LIBRARY_H_INCLUDED
#include <iostream>
#include "book.h"
class Book;
class Library
{
Book* books;
int maxBookCount;
int currentBooksAvailable;
int currentBookCount;
public:
Library();
Library(int);
~Library();
Book& GetBook(int);
int GetAvailableBookCount() const;
int GetCurrentBookCount() const;
int GetMaxBookCount() const;
bool GetBorrowedStatus(int) const;
void AddBook(const Book&);
void RemoveBook(Book&); //remove book from library, remove gap in index
void IncrementBookCount();
void DecrementBookCount();
void IncrementBooksAvailable();
void DecrementBooksAvailable();
void ShowAllBooks();
void ShowAvailableBooks();
};
#endif // LIBRARY_H_INCLUDED