-
Notifications
You must be signed in to change notification settings - Fork 0
/
Movie.h
42 lines (38 loc) · 1.09 KB
/
Movie.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
#ifndef GROUP_21_OOP_2023_24_MOVIE_H
#define GROUP_21_OOP_2023_24_MOVIE_H
#include <string>
#include <map>
using namespace std;
class Movie {
public:
string title;
string description;
string *genre;
int genre_len;
string type;
float rating;
public:
Movie();
Movie(string _title, string _description, string _genre[], int len, string _type, float _rating);
Movie(const Movie& copy);
string getTitle() const;
string getDescription() const;
string getGenre() const;
string getType() const;
float getRating() const;
Movie& setTitle(string _title);
Movie& setDescription(string _description);
Movie& setGenre(string _genre[], int len);
Movie& setType(string _type);
Movie& setRating(float _rating);
virtual ~Movie();
virtual void show() const;
Movie& operator++();
Movie operator++(int);
Movie& operator--();
Movie operator--(int);
friend ostream& operator<<(std::ostream& os, const Movie& movie);
Movie(const string& _title);
operator map<string, string>() const;
};
#endif //GROUP_21_OOP_2023_24_MOVIE_H