#include <Shakespeare.h>
A Shakespeare Data source object containing sonnets, poems and plays.
This is a convenience class provided for users who wish to use this data source as part of their application. It provides an API that makes it easy to access the attributes of this data set.
One would not normally create an object of this type but rather get one by calling bridges::DataSource::getShakespeareData()
- See also
- Refer to the tutorial on how to use this dataset: https://bridgesuncc.github.io/tutorials/Data_Shakespeare.html
- Author
- Kalpathi Subramanian
- Date
- 1/16/17, 12/28/20
◆ Shakespeare() [1/2]
bridges::dataset::Shakespeare::Shakespeare |
( |
| ) |
|
|
inline |
◆ Shakespeare() [2/2]
bridges::dataset::Shakespeare::Shakespeare |
( |
const string & |
title, |
|
|
const string & |
type, |
|
|
const string & |
text |
|
) |
| |
|
inline |
Constructor
- Parameters
-
title | title of sonnet, play or poem |
type | (sonnet, play or poem) |
text | full text of entity |
◆ getText()
string bridges::dataset::Shakespeare::getText |
( |
| ) |
const |
|
inline |
Get full text of sonnet, play or poem
- Returns
- full text (string)
◆ getTitle()
string bridges::dataset::Shakespeare::getTitle |
( |
| ) |
const |
|
inline |
Get title of sonnet, play or poem
- Returns
- title (string)
◆ getType()
string bridges::dataset::Shakespeare::getType |
( |
| ) |
const |
|
inline |
Get type of sonnet, play or poem
- Returns
- type (string)
◆ setText()
void bridges::dataset::Shakespeare::setText |
( |
const string & |
text | ) |
|
|
inline |
set full text of sonnet, play or poem
- Parameters
-
text | full text (string) to be set |
◆ setTitle()
void bridges::dataset::Shakespeare::setTitle |
( |
const string & |
title | ) |
|
|
inline |
set title of sonnet, play or poem
- Parameters
-
◆ setType()
void bridges::dataset::Shakespeare::setType |
( |
const string & |
type | ) |
|
|
inline |
set type to sonnet, play or poem
- Parameters
-
The documentation for this class was generated from the following file: