Bridges-C++  3.1.1
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:
33  Song()
34  : artist(""), song(""), album(""), lyrics(""), release_date("") {
35  }
36 
37  Song(const string& artist, const string& song, const string& album, const string& lyrics,
38  const string& release_date)
39  : artist(artist), song(song), album(album), lyrics(lyrics), release_date(release_date) {
40  }
41 
42  string getArtist() const {
43  return artist;
44  }
45 
46  void setArtist (const string& artist) {
47  this->artist = artist;
48  }
49 
50  string getSongTitle() const {
51  return song;
52  }
53  void setSongTitle(const string& song) {
54  this->song = song;
55  }
56 
57  string getAlbumTitle() const {
58  return album;
59  }
60  void setAlbumTitle(const string& album) {
61  this->album = album;
62  }
63 
64  string getLyrics() const {
65  return lyrics;
66  }
67  void setLyrics(const string& lyrics) {
68  this->lyrics = lyrics;
69  }
70 
71  string getReleaseDate() const {
72  return release_date;
73  }
74  void setReleaseDate(const string& release_date) {
75  this->release_date = release_date;
76  }
77  };
78  }
79 } // namespace bridges
80 
81 #endif
void setAlbumTitle(const string &album)
Definition: Song.h:60
void setArtist(const string &artist)
Definition: Song.h:46
string getLyrics() const
Definition: Song.h:64
Song(const string &artist, const string &song, const string &album, const string &lyrics, const string &release_date)
Definition: Song.h:37
string getSongTitle() const
Definition: Song.h:50
A Song object, used along with the Songs data source.
Definition: Song.h:24
void setReleaseDate(const string &release_date)
Definition: Song.h:74
string getReleaseDate() const
Definition: Song.h:71
string getArtist() const
Definition: Song.h:42
string getAlbumTitle() const
Definition: Song.h:57
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:33
void setSongTitle(const string &song)
Definition: Song.h:53
void setLyrics(const string &lyrics)
Definition: Song.h:67