Bridges-C++  3.1.1
Bridges(C++API)
Shakespeare.h
Go to the documentation of this file.
1 #ifndef SHAKESPEARE_H
2 
3 #define SHAKESPEARE_H
4 
5 #include <string>
6 
7 using namespace std;
8 
9 namespace bridges {
10  namespace dataset {
28  class Shakespeare {
29  private:
30  string title, // title of work
31  type, // play, sonnet, ...
32  text; // content?
33 
34  public:
36  : title(""), type(""), text("") {
37  }
38  Shakespeare(const string& title, const string& type, const string& text)
39  : title(title), type(type), text(text) {
40  }
41  string getTitle() const {
42  return title;
43  }
44  void setTitle (const string& title) {
45  this->title = title;
46  }
47  string getType() const {
48  return type;
49  }
50  void setType (const string& type) {
51  this->type = type;
52  }
53  string getText() const {
54  return text;
55  }
56  void setText (const string& text) {
57  this->text = text;
58  }
59  };
60  }
61 } //namespace bridges
62 
63 #endif
A Shakespeare book object, used along with the Shakespeare books data source.
Definition: Shakespeare.h:28
STL namespace.
void setType(const string &type)
Definition: Shakespeare.h:50
void setTitle(const string &title)
Definition: Shakespeare.h:44
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
Shakespeare(const string &title, const string &type, const string &text)
Definition: Shakespeare.h:38
Shakespeare()
Definition: Shakespeare.h:35
string getText() const
Definition: Shakespeare.h:53
void setText(const string &text)
Definition: Shakespeare.h:56
string getType() const
Definition: Shakespeare.h:47
string getTitle() const
Definition: Shakespeare.h:41