-
Notifications
You must be signed in to change notification settings - Fork 0
/
transaction.h
50 lines (42 loc) · 1.1 KB
/
transaction.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
50
// ---------------------------------------------- transaction.h -----------------------------------------------------
// Name: Ihar Simanovich & Jason Kozodoy
// Course: CSS343 A
// Creation Date: 12/01/2016
// Last Modification: 12/14/2016
// ------------------------------------------------------------------------------------------------------------------
#ifndef TRANSACTION_H
#define TRANSACTION_H
#include <iostream>
#include "movie.h"
#include "bintree.h"
#include "comedy.h"
#include "classic.h"
#include "drama.h"
using namespace std;
//Transaction class.
//represents a transaction that customer makes
class Transaction{
public:
Transaction();
virtual ~Transaction();
//business logic functions
virtual void setData(string, char);
virtual void doTransaction(BinTree&, char);
//getters functions
char getTransType();
string getTitle();
int getYear();
int getMonth();
string getDirector();
string getActor();
bool isSuccess();
protected:
char type;
string title;
int year;
int month;
string director;
string actor;
bool success;
};
#endif