-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrama.hpp
36 lines (30 loc) · 1.14 KB
/
drama.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
//----------------------------------------------------------------------------
// Drama.h
// Implementation:
// -- This class is responsible for handling the drama movies available in
// the store. Drama inherits the public variables and methods from Movie.
// Assumptions:
// -- Data file will be formatted correctly, although data may be incorrect
// -- Factory determines which type of movie object is created
//----------------------------------------------------------------------------
#ifndef drama_hpp
#define drama_hpp
#include <fstream>
#include <iostream>
#include "movie.hpp"
using namespace std;
class Drama : public Movie {
public:
// constructor / destructor
Drama();
~Drama();
virtual void setData(ifstream&); // sets data members
virtual void setTempData(ifstream&); // sets data to process Transaction
// comparison operators for sorting
virtual bool operator>(const Movie&) const;
virtual bool operator<(const Movie&) const;
virtual bool operator==(const Movie&) const;
virtual bool operator!=(const Movie&) const;
virtual Movie* create(); // returns pointer to Drama movie
};
#endif