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) {
122 this->loc_class = loc;
152 this->genres = genre;
167 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:129
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:151
string getLoc() const
Definition: GutenbergBook.h:114
void setLang(const string &lang)
Definition: GutenbergBook.h:136
string getTitle() const
Definition: GutenbergBook.h:99
int getId() const
Definition: GutenbergBook.h:83
void setDateAdded(const string &da)
Definition: GutenbergBook.h:166
void setAuthors(const vector< string > &auth)
Definition: GutenbergBook.h:75
void setLoc(const string &loc)
Definition: GutenbergBook.h:121
void setTitle(const string &title)
Definition: GutenbergBook.h:106
void setId(const int &id)
Definition: GutenbergBook.h:90
vector< string > getGenres() const
Definition: GutenbergBook.h:144
vector< string > getAuthors() const
Definition: GutenbergBook.h:68
GutenbergBook()
Definition: GutenbergBook.h:44
string getDateAdded() const
Definition: GutenbergBook.h:159
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4