Bridges-C++  3.4.2
Bridges(C++ API)
Public Member Functions | List of all members
bridges::dataset::Game Class Reference

#include <Game.h>

Detailed Description

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

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)
 

Constructor & Destructor Documentation

◆ Game() [1/2]

bridges::dataset::Game::Game ( )
inline

Constructor

◆ Game() [2/2]

bridges::dataset::Game::Game ( const string &  title,
const string &  platform,
double  rating,
const vector< string > &  genre 
)
inline

Constructor

Parameters
titletitle of game
platformplatform on which it can be played (String)
ratingrating of game (double)
genregenres of game (vector of strings)

Member Function Documentation

◆ getGameGenre()

vector<string> bridges::dataset::Game::getGameGenre ( ) const
inline

set genres of game

Parameters
genregenres 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
genregenres to be set (vector of strings)

◆ setPlatformType()

void bridges::dataset::Game::setPlatformType ( const string &  platform)
inline

set platform type of game

Parameters
platformplatform type to be set (string)

◆ setRating()

void bridges::dataset::Game::setRating ( double  rating)
inline

set rating of game

Parameters
ratingrating to be set (double)

◆ setTitle()

void bridges::dataset::Game::setTitle ( const string &  title)
inline

set title of game

Parameters
titlegame title to be set (string)

The documentation for this class was generated from the following file: