Bridges-C++
3.4.4
Bridges(C++ API)
|
#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().
Public Member Functions | |
Game () | |
Game (const string &title, const string &platform, double rating, const vector< string > &genre) | |
string | getTitle () const |
void | setTitle (const string &title) |
string | getPlatformType () const |
void | setPlatformType (const string &platform) |
double | getRating () const |
void | setRating (double rating) |
vector< string > | getGameGenre () const |
void | setGameGenre (const vector< string > &genre) |
|
inline |
Constructor
|
inline |
Constructor
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) |
|
inline |
set genres of game
genre | genres to be set (vector of strings) |
|
inline |
get platform type of game
|
inline |
get rating of game
|
inline |
get title of game
|
inline |
set genres of game
genre | genres to be set (vector of strings) |
|
inline |
set platform type of game
platform | platform type to be set (string) |
|
inline |
set rating of game
rating | rating to be set (double) |
|
inline |
set title of game
title | game title to be set (string) |