-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomer.h
47 lines (40 loc) · 1.53 KB
/
Customer.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
// ------------------------------------------------ Customer.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 customer class. it uses a vector to record the transaction of a customer.
// --------------------------------------------------------------------------------------------------------------------
//The requirements for this assignment were specified by Wooyoung Kim via class
// and canvas.
// --------------------------------------------------------------------------------------------------------------------
#ifndef Customer_h
#define Customer_h
#include <iostream>
#include <string>
#include <vector> // holds transactions
#include "Transaction.h"
#include "Return.h"
#include "Borrow.h"
using namespace std;
class Customer
{
public:
//constructors and destructors
Customer();
Customer(int ID, string firstName, string lastName);
~Customer();
int getCustomerID();
void addTransaction(Transaction *t);
void showAllTransactions();
bool operator==(const Customer& otherCustomer) const;
bool operator!=(const Customer& otherCustomer) const;
friend ostream& operator <<(ostream& output, Customer& otherCustomer);
private:
int customerID;
string firstName;
string lastName;
vector<Transaction*> transactions;
friend class HashTable;
};
#endif // !Customer_h