Bridges-C++  3.1.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 {
24  class Game {
25  private:
26  string title; // game
27  string platform; // game platform type
28  double rating; // game rating
29  vector<string> genre; // game type/category
30 
31  public:
32 
33  Game()
34  : title(""), platform(""), rating(0), genre() {
35  }
36 
37  Game(const string& title, const string& platform, double rating,
38  const vector<string>& genre)
39  : title(title), platform(platform), rating(rating), genre(genre) {
40  }
41 
42  string getTitle() const {
43  return title;
44  }
45  void setTitle (const string& title) {
46  this->title = title;
47  }
48 
49  string getPlatformType() const {
50  return platform;
51  }
52  void setPlatformType(const string& platform) {
53  this->platform = platform;
54  }
55 
56  double getRating() const {
57  return rating;
58  }
59  void setRating(double rating) {
60  this->rating = rating;
61  }
62  vector<string> getGameGenre() const {
63  return genre;
64  }
65  void setGameGenre(const vector<string>& genre) {
66  this->genre = genre;
67  }
68  };
69  }
70 } // namespace bridges
71 
72 #endif
Game(const string &title, const string &platform, double rating, const vector< string > &genre)
Definition: Game.h:37
void setPlatformType(const string &platform)
Definition: Game.h:52
STL namespace.
double getRating() const
Definition: Game.h:56
void setGameGenre(const vector< string > &genre)
Definition: Game.h:65
vector< string > getGameGenre() const
Definition: Game.h:62
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:59
string getTitle() const
Definition: Game.h:42
Game()
Definition: Game.h:33
A Game object, used along with the Games data source.
Definition: Game.h:24
void setTitle(const string &title)
Definition: Game.h:45
string getPlatformType() const
Definition: Game.h:49