-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLogic.h
More file actions
47 lines (44 loc) · 1.11 KB
/
Logic.h
File metadata and controls
47 lines (44 loc) · 1.11 KB
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
#ifndef LOGIC_H
#define LOGIC_H
#include "MyNamespace.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <iomanip>
#include "MyNamespace.h"
#include "Date.h"
#include "Person.h"
#include "Member.h"
#include "Book.h"
#include "Librarian.h"
#include "Menu.h"
#include "Global.h"
namespace MyNamespace {
class Menu;
class Logic {
private:
Librarian* librarian;
Menu* menu;
std::string fileName;
public :
Logic(const std::string& fileName, Menu* m);
~Logic();
void addBooks(std::vector<std::vector<std::string>> fileContent);
void addBook(std::vector<std::vector<std::string>>, int i);
void handleMenu(int choice);
std::vector<std::vector<std::string>> readFile();
void addMember();
void handleBookIssue();
void handleReturn();
void changeDate();
void initializeObjectMap();
void displayBooks(std::vector<std::vector<std::string>> cSVRows);
void displayMembers();
void handleMenu(std::vector<std::vector<std::string>> cSVRows);
void handleLogic();
void displayBorrowedBooks();
int getUserChoice();
};
}
#endif