#include <GutenbergBook.h>
A Gutenberg Book object (meta data and book's full text)
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.
Objects of this type are typically not constructed by the user but returned by a call to our Gutenberg API such as bridges::DataSource::getGutenbergBookMetaData(), with an optional book id (integer) as a parameter.
The object does not contain the text of the book itself. Though it can be obtained using bridges::DataSource::getGutenbergBookText()
- See also
- A tutorial of how to use the Gutenberg data in BRIDGES is available: https://bridgesuncc.github.io/tutorials/Data_Gutenberg.html
- Author
- Kalpathi Subramanian
- Date
- 2/1/17, 12/28/20, 6/9/21
◆ GutenbergBook() [1/2]
bridges::dataset::GutenbergBook::GutenbergBook |
( |
| ) |
|
|
inline |
◆ GutenbergBook() [2/2]
bridges::dataset::GutenbergBook::GutenbergBook |
( |
const string & |
titl, |
|
|
const int & |
book_id, |
|
|
const vector< string > & |
auth, |
|
|
const string & |
lng, |
|
|
const vector< string > & |
genr, |
|
|
const string & |
da |
|
) |
| |
|
inline |
Constructor
- Parameters
-
titl | book title |
id | book id |
loc | book's library of congress class |
auth | book authors |
lng | language |
genr | genres of book |
da | date added |
◆ getAuthors()
vector<string> bridges::dataset::GutenbergBook::getAuthors |
( |
| ) |
const |
|
inline |
get name of author
- Returns
- authorName
◆ getDateAdded()
string bridges::dataset::GutenbergBook::getDateAdded |
( |
| ) |
const |
|
inline |
set book's subjects
- Returns
- subjects covered by the book
◆ getGenres()
vector<string> bridges::dataset::GutenbergBook::getGenres |
( |
| ) |
const |
|
inline |
get book's genres
- Returns
- genres of book
◆ getId()
int bridges::dataset::GutenbergBook::getId |
( |
| ) |
const |
|
inline |
get book id
- Returns
- book's id
◆ getLang()
string bridges::dataset::GutenbergBook::getLang |
( |
| ) |
const |
|
inline |
get book's language
- Returns
- language of book
◆ getLoc()
string bridges::dataset::GutenbergBook::getLoc |
( |
| ) |
const |
|
inline |
get Library of Congress class
- Returns
- book's LOC class
◆ getTitle()
string bridges::dataset::GutenbergBook::getTitle |
( |
| ) |
const |
|
inline |
get book title
- Returns
- book's title
◆ setAuthors()
void bridges::dataset::GutenbergBook::setAuthors |
( |
const vector< string > & |
auth | ) |
|
|
inline |
set names of authors
- Parameters
-
◆ setDateAdded()
void bridges::dataset::GutenbergBook::setDateAdded |
( |
const string & |
da | ) |
|
|
inline |
set book added date
- Parameters
-
da | date added to collection |
◆ setGenres()
void bridges::dataset::GutenbergBook::setGenres |
( |
const vector< string > & |
genre | ) |
|
|
inline |
set book's genres
- Parameters
-
genre | genres of book to be set |
◆ setId()
void bridges::dataset::GutenbergBook::setId |
( |
const int & |
id | ) |
|
|
inline |
◆ setLang()
void bridges::dataset::GutenbergBook::setLang |
( |
const string & |
lang | ) |
|
|
inline |
set book's language
- Parameters
-
lang | book's language to be set |
◆ setLoc()
void bridges::dataset::GutenbergBook::setLoc |
( |
const string & |
loc | ) |
|
|
inline |
set book's LOC class
- Parameters
-
◆ setTitle()
void bridges::dataset::GutenbergBook::setTitle |
( |
const string & |
titl | ) |
|
|
inline |
set book title
- Parameters
-
title | title of book to set |
The documentation for this class was generated from the following file: