A Game object, used along with the Games data source.
More...
#include <Game.h>
A Game object, used along with the Games data source.
This is a convenience class provided for users who wish to use this data source as part of their application. It provides an API that makes it easy to access the attributes of this data set.
Each game record has title, platform on which it can be played, rating, and a list of genres.
One would not normally create an object of this type, but rather obtain them through a call to bridges::DataSource::getGameData().
- See also
- Refer to tutorial examples on how to use this dataset: https://bridgesuncc.github.io/tutorials/Data_IGN_Games.html
- Author
- Kalpathi Subramanian
- Date
- 2/1/17, 12/26/20
◆ Game() [1/2]
bridges::dataset::Game::Game |
( |
| ) |
|
|
inline |
◆ Game() [2/2]
bridges::dataset::Game::Game |
( |
const string & |
title, |
|
|
const string & |
platform, |
|
|
double |
rating, |
|
|
const vector< string > & |
genre |
|
) |
| |
|
inline |
Constructor
- Parameters
-
title | title of game |
platform | platform on which it can be played (String) |
rating | rating of game (double) |
genre | genres of game (vector of strings) |
◆ getGameGenre()
vector<string> bridges::dataset::Game::getGameGenre |
( |
| ) |
const |
|
inline |
set genres of game
- Parameters
-
genre | genres to be set (vector of strings) |
◆ getPlatformType()
string bridges::dataset::Game::getPlatformType |
( |
| ) |
const |
|
inline |
get platform type of game
- Returns
- platform types (string)
◆ getRating()
double bridges::dataset::Game::getRating |
( |
| ) |
const |
|
inline |
get rating of game
- Returns
- rating (double)
◆ getTitle()
string bridges::dataset::Game::getTitle |
( |
| ) |
const |
|
inline |
get title of game
- Returns
- title of game (string)
◆ setGameGenre()
void bridges::dataset::Game::setGameGenre |
( |
const vector< string > & |
genre | ) |
|
|
inline |
set genres of game
- Parameters
-
genre | genres to be set (vector of strings) |
◆ setPlatformType()
void bridges::dataset::Game::setPlatformType |
( |
const string & |
platform | ) |
|
|
inline |
set platform type of game
- Parameters
-
platform | platform type to be set (string) |
◆ setRating()
void bridges::dataset::Game::setRating |
( |
double |
rating | ) |
|
|
inline |
set rating of game
- Parameters
-
rating | rating to be set (double) |
◆ setTitle()
void bridges::dataset::Game::setTitle |
( |
const string & |
title | ) |
|
|
inline |
set title of game
- Parameters
-
title | game title to be set (string) |
The documentation for this class was generated from the following file:
- bridges-cxx/src/data_src/Game.h