Bridges-C++  3.2.0
Bridges(C++API)
ActorMovieIMDB.h
Go to the documentation of this file.
1 #ifndef IMDB_H
2 
3 #define IMDB_H
4 
5 #include <string>
6 
7 using namespace std;
8 
9 namespace bridges {
10  namespace dataset {
24 
25  private:
26  string actor, movie;
27  double rating;
28  vector<string> genres;
29 
30  public:
32  actor = movie = "";
33  rating = 0.0;
34  }
35 
42  ActorMovieIMDB(const string& a, const string& m) {
43  actor = a;
44  movie = m;
45  rating = 0.0;
46  }
47 
48 
57  ActorMovieIMDB(const string& a, const string& m, float r, const vector<string>& genr) {
58  actor = a;
59  movie = m;
60  rating = r;
61  genres = genr;
62  }
63 
69  string getActor() const {
70  return actor;
71  }
78  void setActor (const string& a) {
79  actor = a;
80  }
81 
87  string getMovie() const {
88  return movie;
89  }
90 
96  void setMovie (const string& m) {
97  movie = m;
98  }
99 
105  double getMovieRating() const {
106  return rating;
107  }
108 
114  void setMovieRating(double r) {
115  rating = r;
116  }
117 
123  vector<string> getGenres() const {
124  return genres;
125  }
126 
132  void setGenres(const vector<string>& g) {
133  genres = g;
134  }
135 
136  };
137  }
138 } // namespace bridges
139 
140 #endif
void setActor(const string &a)
Set actor name.
Definition: ActorMovieIMDB.h:78
void setGenres(const vector< string > &g)
Set movie genres.
Definition: ActorMovieIMDB.h:132
double getMovieRating() const
Get movie rating.
Definition: ActorMovieIMDB.h:105
string getMovie() const
Get movie name.
Definition: ActorMovieIMDB.h:87
void setMovieRating(double r)
Set movie rating.
Definition: ActorMovieIMDB.h:114
STL namespace.
ActorMovieIMDB(const string &a, const string &m, float r, const vector< string > &genr)
Definition: ActorMovieIMDB.h:57
void setMovie(const string &m)
xSet movie name
Definition: ActorMovieIMDB.h:96
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
vector< string > getGenres() const
Get movie genres.
Definition: ActorMovieIMDB.h:123
A class to hold actor movie data – using IMDB dataset.
Definition: ActorMovieIMDB.h:23
ActorMovieIMDB()
Definition: ActorMovieIMDB.h:31
string getActor() const
Get actor name.
Definition: ActorMovieIMDB.h:69
ActorMovieIMDB(const string &a, const string &m)
Definition: ActorMovieIMDB.h:42