-
Notifications
You must be signed in to change notification settings - Fork 0
/
View.h
41 lines (28 loc) · 938 Bytes
/
View.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
#ifndef VIEW_H
#define VIEW_H
#include "Book.h"
#include "Library.h"
#include "Array.h"
//#include "Control.h"
using namespace std;
class View
{
public:
//View ctor
View();
//View dtor
~View();
//Displays the main menu and reads in the user's selection
//int mainMenu(int& selection);
void mainMenu(int& selectionRef);
//Reads all information from the user about one book
void readBookInfo(int& idRef, string& callNumberRef, string& titleRef, string& authorRef, int& yearRef);
//Prints out the library, takes in the Library as a parameter.
//This function will use delegation (see tutorial #3) to as the Library
//class to print to screen
void print(Library& libRef);
//Prompts the user for a book type (Fiction or Non-Fiction)
void readBookType(int& fictNonFictRef);
private:
};
#endif