![]() |
Bridges-C++
3.2.0
Bridges(C++API)
|
#include <GutenbergBook.h>
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.
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) |
|
inline |
Default Constructor
|
inline |
Constructor
authorName | name of author |
authorBirth | birthdate |
authorDeath | date of death |
title | book title |
lang | language |
genre | genres of book |
subject | subject of book |
numChars | number of characters in book |
numWords | number of words in book |
numSentences | number of sentences in book |
numDifficultWords | number of difficult words in book |
url | url for more information |
downloads | number of downloads of this book |
|
inline |
get birthdate of author
|
inline |
get date of death of author
|
inline |
get name of author
|
inline |
get book's genres
|
inline |
get book's language
|
inline |
get total number of characters in book
|
inline |
get total number of difficult words in book
|
inline |
get total number of downloads of this book
|
inline |
get total number of sentences in book
|
inline |
get total number of words in book
|
inline |
set book's subjects
|
inline |
get book title
|
inline |
get url of book for more info
|
inline |
set birth date of author
authorBirth | birthdate of author to set |
|
inline |
set author's date of death
authorDeath | date of death to set |
|
inline |
set name of author
authorName | name of author |
|
inline |
set book's genres
genre | genres of book to be set |
|
inline |
set book's language
lang | book's language to be set |
|
inline |
set total number of characters in book
numChars | total characters to be set for this book |
|
inline |
set total number of difficult words in book
numDifficultWords | total difficult words to be set for this book |
|
inline |
set total number of downloads
dl | total downloads of this book to be set |
|
inline |
set total number of sentences in book
numSentences | total sentences to be set for this book |
|
inline |
set total number of words in book
numWords | total words to be set for this book |
|
inline |
set book's subjects
subject | subjects of book to be set |
|
inline |
set book title
title | title of book to set |
|
inline |
set url of book for more info
url | url of book to be set |