Bridges-C++ 3.5.0-dev2-1-ge3e57bf
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
7using namespace std;
8
9namespace bridges {
10 namespace dataset {
32 private:
33 string title, // title of work
34 type, // play, sonnet, ...
35 text; // content?
36
37 public:
43 : title(""), type(""), text("") {
44 }
53 Shakespeare(const string& title, const string& type,
54 const string& text)
55 : title(title), type(type), text(text) {
56 }
62 string getTitle() const {
63 return title;
64 }
70 void setTitle (const string& title) {
71 this->title = title;
72 }
78 string getType() const {
79 return type;
80 }
86 void setType (const string& type) {
87 this->type = type;
88 }
94 string getText() const {
95 return text;
96 }
102 void setText (const string& text) {
103 this->text = text;
104 }
105 };
106 }
107} //namespace bridges
108
109#endif
A Shakespeare Data source object containing sonnets, poems and plays.
Definition: Shakespeare.h:31
string getTitle() const
Definition: Shakespeare.h:62
string getText() const
Definition: Shakespeare.h:94
void setType(const string &type)
Definition: Shakespeare.h:86
Shakespeare()
Definition: Shakespeare.h:42
Shakespeare(const string &title, const string &type, const string &text)
Definition: Shakespeare.h:53
void setTitle(const string &title)
Definition: Shakespeare.h:70
string getType() const
Definition: Shakespeare.h:78
void setText(const string &text)
Definition: Shakespeare.h:102
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4