Bridges-C++  3.1.1
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 {
20 
21  private:
22  string actor, movie;
23  double rating;
24  vector<string> genres;
25 
26  public:
28  actor = movie = "";
29  rating = 0.0;
30  }
31 
38  ActorMovieIMDB(const string& a, const string& m) {
39  actor = a;
40  movie = m;
41  rating = 0.0;
42  }
43 
44 
53  ActorMovieIMDB(const string& a, const string& m, float r, const vector<string>& genr) {
54  actor = a;
55  movie = m;
56  rating = r;
57  genres = genr;
58  }
59 
65  string getActor() const {
66  return actor;
67  }
74  void setActor (const string& a) {
75  actor = a;
76  }
77 
83  string getMovie() const {
84  return movie;
85  }
86 
92  void setMovie (const string& m) {
93  movie = m;
94  }
95 
101  double getMovieRating() const {
102  return rating;
103  }
104 
110  void setMovieRating(double r) {
111  rating = r;
112  }
113 
119  vector<string> getGenres() const {
120  return genres;
121  }
122 
128  void setGenres(const vector<string>& g) {
129  genres = g;
130  }
131 
132  };
133  }
134 } // namespace bridges
135 
136 #endif
void setActor(const string &a)
Set actor name.
Definition: ActorMovieIMDB.h:74
void setGenres(const vector< string > &g)
Set movie genres.
Definition: ActorMovieIMDB.h:128
double getMovieRating() const
Get movie rating.
Definition: ActorMovieIMDB.h:101
string getMovie() const
Get movie name.
Definition: ActorMovieIMDB.h:83
void setMovieRating(double r)
Set movie rating.
Definition: ActorMovieIMDB.h:110
STL namespace.
ActorMovieIMDB(const string &a, const string &m, float r, const vector< string > &genr)
Definition: ActorMovieIMDB.h:53
void setMovie(const string &m)
xSet movie name
Definition: ActorMovieIMDB.h:92
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:119
A class to hold actor movie data – using IMDB dataset.
Definition: ActorMovieIMDB.h:19
ActorMovieIMDB()
Definition: ActorMovieIMDB.h:27
string getActor() const
Get actor name.
Definition: ActorMovieIMDB.h:65
ActorMovieIMDB(const string &a, const string &m)
Definition: ActorMovieIMDB.h:38