Bridges-C++  3.4.1
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 {
33  class Game {
34  private:
35  string title; // game
36  string platform; // game platform type
37  double rating; // game rating
38  vector<string> genre; // game type/category
39 
40  public:
45  Game()
46  : title(""), platform(""), rating(0), genre() {
47  }
58  Game(const string& title, const string& platform, double rating,
59  const vector<string>& genre)
60  : title(title), platform(platform), rating(rating), genre(genre) {
61  }
62 
68  string getTitle() const {
69  return title;
70  }
75  void setTitle (const string& title) {
76  this->title = title;
77  }
83  string getPlatformType() const {
84  return platform;
85  }
91  void setPlatformType(const string& platform) {
92  this->platform = platform;
93  }
98  double getRating() const {
99  return rating;
100  }
105  void setRating(double rating) {
106  this->rating = rating;
107  }
113  vector<string> getGameGenre() const {
114  return genre;
115  }
120  void setGameGenre(const vector<string>& genre) {
121  this->genre = genre;
122  }
123  };
124  }
125 } // namespace bridges
126 
127 #endif
Game(const string &title, const string &platform, double rating, const vector< string > &genre)
Definition: Game.h:58
void setPlatformType(const string &platform)
Definition: Game.h:91
double getRating() const
Definition: Game.h:98
void setGameGenre(const vector< string > &genre)
Definition: Game.h:120
vector< string > getGameGenre() const
Definition: Game.h:113
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:105
string getTitle() const
Definition: Game.h:68
Game()
Definition: Game.h:45
A Game object, used along with the Games data source.
Definition: Game.h:33
void setTitle(const string &title)
Definition: Game.h:75
string getPlatformType() const
Definition: Game.h:83