Bridges-C++  3.4.4
Bridges(C++ API)
Song.h
Go to the documentation of this file.
1 
2 #ifndef SONG_H
3 #define SONG_H
4 
5 namespace bridges {
6  namespace dataset {
27  class Song {
28  private:
29  string artist, // song author
30  song, // song title
31  album, // album title
32  lyrics, // full lyrics
33  release_date;
34 
35  public:
39  Song()
40  : artist(""), song(""), album(""), lyrics(""),
41  release_date("") {
42  }
43 
53  Song(const string& artist, const string& song, const
54  string& album, const string& lyrics,
55  const string& release_date)
56  : artist(artist), song(song), album(album), lyrics(lyrics),
57  release_date(release_date) {
58  }
64  string getArtist() const {
65  return artist;
66  }
72  void setArtist (const string& artist) {
73  this->artist = artist;
74  }
75 
80  string getSongTitle() const {
81  return song;
82  }
83 
88  void setSongTitle(const string& song) {
89  this->song = song;
90  }
91 
97  string getAlbumTitle() const {
98  return album;
99  }
104  void setAlbumTitle(const string& album) {
105  this->album = album;
106  }
107 
112  string getLyrics() const {
113  return lyrics;
114  }
115 
120  void setLyrics(const string& lyrics) {
121  this->lyrics = lyrics;
122  }
123 
128  string getReleaseDate() const {
129  return release_date;
130  }
131 
136  void setReleaseDate(const string& release_date) {
137  this->release_date = release_date;
138  }
139  };
140  }
141 } // namespace bridges
142 
143 #endif
A Song object, used along with the Songs data source.
Definition: Song.h:27
Song(const string &artist, const string &song, const string &album, const string &lyrics, const string &release_date)
Song constructor.
Definition: Song.h:53
string getAlbumTitle() const
Definition: Song.h:97
string getArtist() const
Definition: Song.h:64
void setLyrics(const string &lyrics)
Definition: Song.h:120
string getLyrics() const
Definition: Song.h:112
Song()
Definition: Song.h:39
string getSongTitle() const
Definition: Song.h:80
string getReleaseDate() const
Definition: Song.h:128
void setSongTitle(const string &song)
Definition: Song.h:88
void setAlbumTitle(const string &album)
Definition: Song.h:104
void setArtist(const string &artist)
Definition: Song.h:72
void setReleaseDate(const string &release_date)
Definition: Song.h:136
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4