-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInventoryManager.h
49 lines (45 loc) · 1.6 KB
/
InventoryManager.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
// ------------------------------------------------ inventoryManager.h -------------------------------------------------------
// Jasdeep Brar, Cameron Ufland CSS343 C
// Creation Date: March 1, 2020
// Date of Last Modification: March 14, 2020
// --------------------------------------------------------------------------------------------------------------------
// This is the header file for the Inventory manager class.
// --------------------------------------------------------------------------------------------------------------------
//The requirements for this assignment were specified by Wooyoung Kim via class
// and canvas.
// --------------------------------------------------------------------------------------------------------------------
#ifndef InventoryManager_h
#define InventoryManager_h
#include <iostream>
#include <fstream>
#include <string>
#include "Movie.h"
#include "Funny.h"
#include "Drama.h"
#include "Classic.h"
#include "Customer.h"
#include "BST.h"
#include "HashTable.h"
#include "Transaction.h"
using namespace std;
class InventoryManager
{
public:
//constructor and destructor
InventoryManager();
~InventoryManager();
//buildm movie objects, populates movie bst
bool buildMovies(ifstream& moviesData);
//builds customer objects, populates customer hashtable
bool buildCustomers(ifstream& customersData);
//process transactions
bool processTransaction(ifstream& commandsFile);
//shows history of store
void showAllInventory();
private:
BST<Funny> funnyMoviesBST;
BST<Drama> dramaMoviesBST;
BST<Classic> classicMoviesBST;
HashTable customerTable;
};
#endif // !InventoryManager_h