Bridges-C++  3.4.2
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 {
32  class Shakespeare {
33  private:
34  string title, // title of work
35  type, // play, sonnet, ...
36  text; // content?
37 
38  public:
44  : title(""), type(""), text("") {
45  }
54  Shakespeare(const string& title, const string& type,
55  const string& text)
56  : title(title), type(type), text(text) {
57  }
63  string getTitle() const {
64  return title;
65  }
71  void setTitle (const string& title) {
72  this->title = title;
73  }
79  string getType() const {
80  return type;
81  }
87  void setType (const string& type) {
88  this->type = type;
89  }
95  string getText() const {
96  return text;
97  }
103  void setText (const string& text) {
104  this->text = text;
105  }
106  };
107  }
108 } //namespace bridges
109 
110 #endif
A Shakespeare Data source object containing sonnets, poems and plays.
Definition: Shakespeare.h:32
string getTitle() const
Definition: Shakespeare.h:63
string getText() const
Definition: Shakespeare.h:95
void setType(const string &type)
Definition: Shakespeare.h:87
Shakespeare()
Definition: Shakespeare.h:43
Shakespeare(const string &title, const string &type, const string &text)
Definition: Shakespeare.h:54
void setTitle(const string &title)
Definition: Shakespeare.h:71
string getType() const
Definition: Shakespeare.h:79
void setText(const string &text)
Definition: Shakespeare.h:103
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4