-
Notifications
You must be signed in to change notification settings - Fork 0
/
history.hpp
35 lines (30 loc) · 977 Bytes
/
history.hpp
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
//----------------------------------------------------------------------------
// History.h
// Implementation:
// -- This class is responsible for storing the history of customers
// transactions with movie type
// Assumptions:
// -- Inherits all behavior from Transaction parent class, although it has
// a unique constructor and destructor
// -- display() makes a call to Customer displayHistor() method
//----------------------------------------------------------------------------
#ifndef history_hpp
#define history_hpp
#include <fstream>
#include <iostream>
#include "transaction.hpp"
#include "customerHash.hpp"
#include "inventoryTree.hpp"
using namespace std;
class Customer;
class History : public Transaction {
public:
// constructor / destructor
History();
~History();
// processes transaction
virtual bool process(string, Movie*, Customer*);
// returns pointer to History
virtual Transaction* create();
};
#endif