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

#include <GutenbergBook.h>

Detailed Description

A Gutenberg Book object metadata only, used along with the books 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.

Refer to tutorial examples to using this data source in data structure assignments.

Author
Kalpathi Subramanian
Date
2/1/17, 12/28/20

Public Member Functions

 GutenbergBook ()
 
 GutenbergBook (const string &authorName, int authorBirth, int authorDeath, const string &title, const vector< string > &lang, const vector< string > &genre, const vector< string > &subject, int numChars, int numWords, int numSentences, int numDifficultWords, const string &url, int downloads)
 
string getAuthorName () const
 
void setAuthorName (const string &authorName)
 
int getAuthorBirth () const
 
void setAuthorBirth (int authorBirth)
 
int getAuthorDeath () const
 
void setAuthorDeath (int authorDeath)
 
string getTitle () const
 
void setTitle (const string &title)
 
vector< string > getLang () const
 
void setLang (const vector< string > &lang)
 
vector< string > getGenre () const
 
void setGenre (const vector< string > &genre)
 
vector< string > getSubject () const
 
void setSubject (const vector< string > &subject)
 
string getURL () const
 
void setURL (const string &url)
 
int getNumChars () const
 
void setNumChars (int numChars)
 
int getNumWords () const
 
void setNumWords (int numWords)
 
int getNumSentences () const
 
void setNumSentences (int numSentences)
 
int getNumDifficultWords () const
 
void setNumDifficultWords (int numDifficultWords)
 
int getNumDownloads () const
 
void setNumDownloads (int dl)
 

Constructor & Destructor Documentation

◆ GutenbergBook() [1/2]

bridges::dataset::GutenbergBook::GutenbergBook ( )
inline

Default Constructor

◆ GutenbergBook() [2/2]

bridges::dataset::GutenbergBook::GutenbergBook ( const string &  authorName,
int  authorBirth,
int  authorDeath,
const string &  title,
const vector< string > &  lang,
const vector< string > &  genre,
const vector< string > &  subject,
int  numChars,
int  numWords,
int  numSentences,
int  numDifficultWords,
const string &  url,
int  downloads 
)
inline

Constructor

Parameters
authorNamename of author
authorBirthbirthdate
authorDeathdate of death
titlebook title
langlanguage
genregenres of book
subjectsubject of book
numCharsnumber of characters in book
numWordsnumber of words in book
numSentencesnumber of sentences in book
numDifficultWordsnumber of difficult words in book
urlurl for more information
downloadsnumber of downloads of this book

Member Function Documentation

◆ getAuthorBirth()

int bridges::dataset::GutenbergBook::getAuthorBirth ( ) const
inline

get birthdate of author

Returns
birthdate

◆ getAuthorDeath()

int bridges::dataset::GutenbergBook::getAuthorDeath ( ) const
inline

get date of death of author

Returns
author's date of death

◆ getAuthorName()

string bridges::dataset::GutenbergBook::getAuthorName ( ) const
inline

get name of author

Returns
authorName

◆ getGenre()

vector<string> bridges::dataset::GutenbergBook::getGenre ( ) const
inline

get book's genres

Returns
genres of book

◆ getLang()

vector<string> bridges::dataset::GutenbergBook::getLang ( ) const
inline

get book's language

Returns
language of book

◆ getNumChars()

int bridges::dataset::GutenbergBook::getNumChars ( ) const
inline

get total number of characters in book

Returns
total characters in book

◆ getNumDifficultWords()

int bridges::dataset::GutenbergBook::getNumDifficultWords ( ) const
inline

get total number of difficult words in book

Returns
total difficult words in book

◆ getNumDownloads()

int bridges::dataset::GutenbergBook::getNumDownloads ( ) const
inline

get total number of downloads of this book

Returns
total downloads of this book

◆ getNumSentences()

int bridges::dataset::GutenbergBook::getNumSentences ( ) const
inline

get total number of sentences in book

Returns
total sentences in book

◆ getNumWords()

int bridges::dataset::GutenbergBook::getNumWords ( ) const
inline

get total number of words in book

Returns
total words in book

◆ getSubject()

vector<string> bridges::dataset::GutenbergBook::getSubject ( ) const
inline

set book's subjects

Returns
subjects covered by the book

◆ getTitle()

string bridges::dataset::GutenbergBook::getTitle ( ) const
inline

get book title

Returns
book's title

◆ getURL()

string bridges::dataset::GutenbergBook::getURL ( ) const
inline

get url of book for more info

Returns
url of book

◆ setAuthorBirth()

void bridges::dataset::GutenbergBook::setAuthorBirth ( int  authorBirth)
inline

set birth date of author

Parameters
authorBirthbirthdate of author to set

◆ setAuthorDeath()

void bridges::dataset::GutenbergBook::setAuthorDeath ( int  authorDeath)
inline

set author's date of death

Parameters
authorDeathdate of death to set

◆ setAuthorName()

void bridges::dataset::GutenbergBook::setAuthorName ( const string &  authorName)
inline

set name of author

Parameters
authorNamename of author

◆ setGenre()

void bridges::dataset::GutenbergBook::setGenre ( const vector< string > &  genre)
inline

set book's genres

Parameters
genregenres of book to be set

◆ setLang()

void bridges::dataset::GutenbergBook::setLang ( const vector< string > &  lang)
inline

set book's language

Parameters
langbook's language to be set

◆ setNumChars()

void bridges::dataset::GutenbergBook::setNumChars ( int  numChars)
inline

set total number of characters in book

Parameters
numCharstotal characters to be set for this book

◆ setNumDifficultWords()

void bridges::dataset::GutenbergBook::setNumDifficultWords ( int  numDifficultWords)
inline

set total number of difficult words in book

Parameters
numDifficultWordstotal difficult words to be set for this book

◆ setNumDownloads()

void bridges::dataset::GutenbergBook::setNumDownloads ( int  dl)
inline

set total number of downloads

Parameters
dltotal downloads of this book to be set

◆ setNumSentences()

void bridges::dataset::GutenbergBook::setNumSentences ( int  numSentences)
inline

set total number of sentences in book

Parameters
numSentencestotal sentences to be set for this book

◆ setNumWords()

void bridges::dataset::GutenbergBook::setNumWords ( int  numWords)
inline

set total number of words in book

Parameters
numWordstotal words to be set for this book

◆ setSubject()

void bridges::dataset::GutenbergBook::setSubject ( const vector< string > &  subject)
inline

set book's subjects

Parameters
subjectsubjects of book to be set

◆ setTitle()

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

set book title

Parameters
titletitle of book to set

◆ setURL()

void bridges::dataset::GutenbergBook::setURL ( const string &  url)
inline

set url of book for more info

Parameters
urlurl of book to be set

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