1 #ifndef GUTENBERG_BOOK_H
3 #define GUTENBERG_BOOK_H
36 vector<string> authors;
37 string lang, date_added;
38 vector<string> genres;
45 : title(
""), lang(
""), date_added(
""), id(0), loc_class (
"") {
59 GutenbergBook(
const string& titl,
const int& book_id,
const vector<string>& auth,
60 const string& lng,
const vector<string>& genr,
const string& da)
61 : title(titl), id(book_id), authors(auth), lang(lng), genres(genr), date_added(da) {
121 this->loc_class = loc;
151 this->genres = genre;
166 this->date_added = da;
A Gutenberg Book object (meta data and book's full text)
Definition: GutenbergBook.h:32
string getLang() const
Definition: GutenbergBook.h:128
GutenbergBook(const string &titl, const int &book_id, const vector< string > &auth, const string &lng, const vector< string > &genr, const string &da)
Definition: GutenbergBook.h:59
void setGenres(const vector< string > &genre)
Definition: GutenbergBook.h:150
string getLoc() const
Definition: GutenbergBook.h:113
void setLang(const string &lang)
Definition: GutenbergBook.h:135
void setTitle(const string &titl)
Definition: GutenbergBook.h:105
vector< string > getGenres() const
Definition: GutenbergBook.h:143
string getTitle() const
Definition: GutenbergBook.h:98
int getId() const
Definition: GutenbergBook.h:83
void setDateAdded(const string &da)
Definition: GutenbergBook.h:165
void setAuthors(const vector< string > &auth)
Definition: GutenbergBook.h:75
void setLoc(const string &loc)
Definition: GutenbergBook.h:120
void setId(const int &id)
Definition: GutenbergBook.h:90
GutenbergBook()
Definition: GutenbergBook.h:44
string getDateAdded() const
Definition: GutenbergBook.h:158
vector< string > getAuthors() const
Definition: GutenbergBook.h:68
Support for drawing Bar charts.
Definition: alltypes.h:4