Bridges-C++  3.4.2
Bridges(C++ API)
Public Member Functions | List of all members
bridges::dataset::Shakespeare Class Reference

#include <Shakespeare.h>

Detailed Description

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

Public Member Functions

 Shakespeare ()
 
 Shakespeare (const string &title, const string &type, const string &text)
 
string getTitle () const
 
void setTitle (const string &title)
 
string getType () const
 
void setType (const string &type)
 
string getText () const
 
void setText (const string &text)
 

Constructor & Destructor Documentation

◆ Shakespeare() [1/2]

bridges::dataset::Shakespeare::Shakespeare ( )
inline

Constructor

◆ Shakespeare() [2/2]

bridges::dataset::Shakespeare::Shakespeare ( const string &  title,
const string &  type,
const string &  text 
)
inline

Constructor

Parameters
titletitle of sonnet, play or poem
type(sonnet, play or poem)
textfull text of entity

Member Function Documentation

◆ 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
textfull text (string) to be set

◆ setTitle()

void bridges::dataset::Shakespeare::setTitle ( const string &  title)
inline

set title of sonnet, play or poem

Parameters
title(string) to be set

◆ setType()

void bridges::dataset::Shakespeare::setType ( const string &  type)
inline

set type to sonnet, play or poem

Parameters
type(string) to be set

The documentation for this class was generated from the following file: