Bridges-C++  3.2.0
Bridges(C++API)
Game.h
Go to the documentation of this file.
1 #ifndef GAME_H
2 
3 #define GAME_H
4 
5 #include <string>
6 
7 using namespace std;
8 
9 namespace bridges {
10  namespace dataset {
29  class Game {
30  private:
31  string title; // game
32  string platform; // game platform type
33  double rating; // game rating
34  vector<string> genre; // game type/category
35 
36  public:
41  Game()
42  : title(""), platform(""), rating(0), genre() {
43  }
54  Game(const string& title, const string& platform, double rating,
55  const vector<string>& genre)
56  : title(title), platform(platform), rating(rating), genre(genre) {
57  }
58 
64  string getTitle() const {
65  return title;
66  }
71  void setTitle (const string& title) {
72  this->title = title;
73  }
79  string getPlatformType() const {
80  return platform;
81  }
87  void setPlatformType(const string& platform) {
88  this->platform = platform;
89  }
94  double getRating() const {
95  return rating;
96  }
101  void setRating(double rating) {
102  this->rating = rating;
103  }
109  vector<string> getGameGenre() const {
110  return genre;
111  }
116  void setGameGenre(const vector<string>& genre) {
117  this->genre = genre;
118  }
119  };
120  }
121 } // namespace bridges
122 
123 #endif
Game(const string &title, const string &platform, double rating, const vector< string > &genre)
Definition: Game.h:54
void setPlatformType(const string &platform)
Definition: Game.h:87
STL namespace.
double getRating() const
Definition: Game.h:94
void setGameGenre(const vector< string > &genre)
Definition: Game.h:116
vector< string > getGameGenre() const
Definition: Game.h:109
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
void setRating(double rating)
Definition: Game.h:101
string getTitle() const
Definition: Game.h:64
Game()
Definition: Game.h:41
A Game object, used along with the Games data source.
Definition: Game.h:29
void setTitle(const string &title)
Definition: Game.h:71
string getPlatformType() const
Definition: Game.h:79