-
Notifications
You must be signed in to change notification settings - Fork 0
/
Movie.h
32 lines (28 loc) · 1.03 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
#ifndef MOVIE_INCLUDED
#define MOVIE_INCLUDED
#include <string>
#include <vector>
class Movie {
public:
Movie(const std::string& id, const std::string& title,
const std::string& release_year,
const std::vector<std::string>& directors,
const std::vector<std::string>& actors,
const std::vector<std::string>& genres, float rating);
std::string get_id() const {return m_id;}
std::string get_title() const {return m_title;}
std::string get_release_year() const {return m_releaseYear;}
float get_rating() const {return m_rating;}
std::vector<std::string> get_directors() const {return m_directors;}
std::vector<std::string> get_actors() const {return m_actors;}
std::vector<std::string> get_genres() const {return m_genres;}
private:
std::string m_id;
std::string m_title;
std::string m_releaseYear;
float m_rating;
std::vector<std::string> m_directors;
std::vector<std::string> m_actors;
std::vector<std::string> m_genres;
};
#endif // MOVIE_INCLUDED