![]() |
Bridges-C++
3.2.0
Bridges(C++API)
|
#include <Song.h>
A Song object, used along with the Songs data source.
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.
Refer to tutorial examples to using this data source in data structure assignments.
Public Member Functions | |
Song () | |
Song (const string &artist, const string &song, const string &album, const string &lyrics, const string &release_date) | |
Song constructor. More... | |
string | getArtist () const |
void | setArtist (const string &artist) |
string | getSongTitle () const |
void | setSongTitle (const string &song) |
string | getAlbumTitle () const |
void | setAlbumTitle (const string &album) |
string | getLyrics () const |
void | setLyrics (const string &lyrics) |
string | getReleaseDate () const |
void | setReleaseDate (const string &release_date) |
|
inline |
Default constructor
|
inline |
Song constructor.
artist | artist of song |
song | song title |
album | album title |
lyrics | lyrics of song (string) |
release_date | date released |
|
inline |
Get album title containing the song
|
inline |
Get song artist
|
inline |
Get lyrics of the song
|
inline |
Get release date of the song
|
inline |
Get song title
|
inline |
Set song album
album | song album to set |
|
inline |
Set song artist
artist | artist to set |
|
inline |
Set song lyrics
lyrics | of song to set |
|
inline |
Set release date of song
release_date | date of release to set |
|
inline |
Set song title
song | song title to set |