-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMovie.cpp
54 lines (44 loc) · 909 Bytes
/
Movie.cpp
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
51
52
53
#include "Movie.h"
#include <string>
#include <vector>
using namespace std;
Movie::Movie(const string& id, const string& title, const string& release_year,
const vector<string>& directors, const vector<string>& actors,
const vector<string>& genres, float rating)
{
m_ID = id;
m_title = title;
m_release_year = release_year;
m_directors = directors;
m_actors = actors;
m_genres = genres;
m_rating = rating;
}
string Movie::get_id() const
{
return m_ID;
}
string Movie::get_title() const
{
return m_title;
}
string Movie::get_release_year() const
{
return m_release_year;
}
float Movie::get_rating() const
{
return m_rating;
}
vector<string> Movie::get_directors() const
{
return m_directors;
}
vector<string> Movie::get_actors() const
{
return m_actors;
}
vector<string> Movie::get_genres() const
{
return m_genres;
}