Bridges-C++  3.4.4
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 #include <vector>
7 
8 using namespace std;
9 
10 namespace bridges {
11  namespace dataset {
34  class Game {
35  private:
36  string title; // game
37  string platform; // game platform type
38  double rating; // game rating
39  vector<string> genre; // game type/category
40 
41  public:
46  Game()
47  : title(""), platform(""), rating(0), genre() {
48  }
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
A Game object, used along with the Games data source.
Definition: Game.h:34
Game(const string &title, const string &platform, double rating, const vector< string > &genre)
Definition: Game.h:58
vector< string > getGameGenre() const
Definition: Game.h:113
void setPlatformType(const string &platform)
Definition: Game.h:91
string getTitle() const
Definition: Game.h:68
Game()
Definition: Game.h:46
void setGameGenre(const vector< string > &genre)
Definition: Game.h:120
void setTitle(const string &title)
Definition: Game.h:75
void setRating(double rating)
Definition: Game.h:105
double getRating() const
Definition: Game.h:98
string getPlatformType() const
Definition: Game.h:83
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4