Bridges-C++  3.4.2
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 {
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 
56 
65  ActorMovieIMDB(const string& a, const string& m, float r, const vector<string>& genr) {
66  actor = a;
67  movie = m;
68  rating = r;
69  genres = genr;
70  }
71 
77  string getActor() const {
78  return actor;
79  }
86  void setActor (const string& a) {
87  actor = a;
88  }
89 
95  string getMovie() const {
96  return movie;
97  }
98 
104  void setMovie (const string& m) {
105  movie = m;
106  }
107 
113  double getMovieRating() const {
114  return rating;
115  }
116 
122  void setMovieRating(double r) {
123  rating = r;
124  }
125 
131  vector<string> getGenres() const {
132  return genres;
133  }
134 
140  void setGenres(const vector<string>& g) {
141  genres = g;
142  }
143 
144  };
145  }
146 } // namespace bridges
147 
148 #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:86
ActorMovieIMDB()
Definition: ActorMovieIMDB.h:39
void setMovieRating(double r)
Set movie rating.
Definition: ActorMovieIMDB.h:122
string getMovie() const
Get movie name.
Definition: ActorMovieIMDB.h:95
vector< string > getGenres() const
Get movie genres.
Definition: ActorMovieIMDB.h:131
ActorMovieIMDB(const string &a, const string &m, float r, const vector< string > &genr)
Definition: ActorMovieIMDB.h:65
ActorMovieIMDB(const string &a, const string &m)
Definition: ActorMovieIMDB.h:50
string getActor() const
Get actor name.
Definition: ActorMovieIMDB.h:77
void setMovie(const string &m)
xSet movie name
Definition: ActorMovieIMDB.h:104
double getMovieRating() const
Get movie rating.
Definition: ActorMovieIMDB.h:113
void setGenres(const vector< string > &g)
Set movie genres.
Definition: ActorMovieIMDB.h:140
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4