Bridges-C++  3.2.0
Bridges(C++API)
Song.h
Go to the documentation of this file.
1 
2 #ifndef SONG_H
3 #define SONG_H
4 
5 
6 namespace bridges {
7  namespace dataset {
24  class Song {
25  private:
26  string artist, // song author
27  song, // song title
28  album, // album title
29  lyrics, // full lyrics
30  release_date;
31 
32  public:
36  Song()
37  : artist(""), song(""), album(""), lyrics(""),
38  release_date("") {
39  }
40 
50  Song(const string& artist, const string& song, const
51  string& album, const string& lyrics,
52  const string& release_date)
53  : artist(artist), song(song), album(album), lyrics(lyrics),
54  release_date(release_date) {
55  }
61  string getArtist() const {
62  return artist;
63  }
70  void setArtist (const string& artist) {
71  this->artist = artist;
72  }
73 
78  string getSongTitle() const {
79  return song;
80  }
81 
86  void setSongTitle(const string& song) {
87  this->song = song;
88  }
89 
95  string getAlbumTitle() const {
96  return album;
97  }
102  void setAlbumTitle(const string& album) {
103  this->album = album;
104  }
105 
110  string getLyrics() const {
111  return lyrics;
112  }
113 
118  void setLyrics(const string& lyrics) {
119  this->lyrics = lyrics;
120  }
121 
126  string getReleaseDate() const {
127  return release_date;
128  }
129 
134  void setReleaseDate(const string& release_date) {
135  this->release_date = release_date;
136  }
137  };
138  }
139 } // namespace bridges
140 
141 #endif
void setAlbumTitle(const string &album)
Definition: Song.h:102
void setArtist(const string &artist)
Definition: Song.h:70
string getLyrics() const
Definition: Song.h:110
Song(const string &artist, const string &song, const string &album, const string &lyrics, const string &release_date)
Song constructor.
Definition: Song.h:50
string getSongTitle() const
Definition: Song.h:78
A Song object, used along with the Songs data source.
Definition: Song.h:24
void setReleaseDate(const string &release_date)
Definition: Song.h:134
string getReleaseDate() const
Definition: Song.h:126
string getArtist() const
Definition: Song.h:61
string getAlbumTitle() const
Definition: Song.h:95
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
Song()
Definition: Song.h:36
void setSongTitle(const string &song)
Definition: Song.h:86
void setLyrics(const string &lyrics)
Definition: Song.h:118