Bridges-C++ 3.5.0-dev1
Bridges(C++ API)
Loading...
Searching...
No Matches
ActorMovieIMDB.h
Go to the documentation of this file.
1#ifndef IMDB_H
2
3#define IMDB_H
4
5#include <string>
6
7using namespace std;
8
9namespace bridges {
10 namespace dataset {
32
33 private:
34 string actor, movie;
35 double rating;
36 vector<string> genres;
37
38 public:
40 actor = movie = "";
41 rating = 0.0;
42 }
43
50 ActorMovieIMDB(const string& a, const string& m) {
51 actor = a;
52 movie = m;
53 rating = 0.0;
54 }
55
64 ActorMovieIMDB(const string& a, const string& m, float r, const vector<string>& genr) {
65 actor = a;
66 movie = m;
67 rating = r;
68 genres = genr;
69 }
70
76 string getActor() const {
77 return actor;
78 }
85 void setActor (const string& a) {
86 actor = a;
87 }
88
94 string getMovie() const {
95 return movie;
96 }
97
103 void setMovie (const string& m) {
104 movie = m;
105 }
106
112 double getMovieRating() const {
113 return rating;
114 }
115
121 void setMovieRating(double r) {
122 rating = r;
123 }
124
130 vector<string> getGenres() const {
131 return genres;
132 }
133
139 void setGenres(const vector<string>& g) {
140 genres = g;
141 }
142
143 };
144 }
145} // namespace bridges
146
147#endif
A class to hold actor movie data – using IMDB dataset.
Definition ActorMovieIMDB.h:31
void setActor(const string &a)
Set actor name.
Definition ActorMovieIMDB.h:85
ActorMovieIMDB()
Definition ActorMovieIMDB.h:39
void setMovieRating(double r)
Set movie rating.
Definition ActorMovieIMDB.h:121
string getMovie() const
Get movie name.
Definition ActorMovieIMDB.h:94
ActorMovieIMDB(const string &a, const string &m, float r, const vector< string > &genr)
Definition ActorMovieIMDB.h:64
ActorMovieIMDB(const string &a, const string &m)
Definition ActorMovieIMDB.h:50
string getActor() const
Get actor name.
Definition ActorMovieIMDB.h:76
vector< string > getGenres() const
Get movie genres.
Definition ActorMovieIMDB.h:130
void setMovie(const string &m)
xSet movie name
Definition ActorMovieIMDB.h:103
double getMovieRating() const
Get movie rating.
Definition ActorMovieIMDB.h:112
void setGenres(const vector< string > &g)
Set movie genres.
Definition ActorMovieIMDB.h:139
Support for drawing Bar charts.
Definition alltypes.h:4