Bridges-C++  3.4.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 {
28  class Song {
29  private:
30  string artist, // song author
31  song, // song title
32  album, // album title
33  lyrics, // full lyrics
34  release_date;
35 
36  public:
40  Song()
41  : artist(""), song(""), album(""), lyrics(""),
42  release_date("") {
43  }
44 
54  Song(const string& artist, const string& song, const
55  string& album, const string& lyrics,
56  const string& release_date)
57  : artist(artist), song(song), album(album), lyrics(lyrics),
58  release_date(release_date) {
59  }
65  string getArtist() const {
66  return artist;
67  }
74  void setArtist (const string& artist) {
75  this->artist = artist;
76  }
77 
82  string getSongTitle() const {
83  return song;
84  }
85 
90  void setSongTitle(const string& song) {
91  this->song = song;
92  }
93 
99  string getAlbumTitle() const {
100  return album;
101  }
106  void setAlbumTitle(const string& album) {
107  this->album = album;
108  }
109 
114  string getLyrics() const {
115  return lyrics;
116  }
117 
122  void setLyrics(const string& lyrics) {
123  this->lyrics = lyrics;
124  }
125 
130  string getReleaseDate() const {
131  return release_date;
132  }
133 
138  void setReleaseDate(const string& release_date) {
139  this->release_date = release_date;
140  }
141  };
142  }
143 } // namespace bridges
144 
145 #endif
void setAlbumTitle(const string &album)
Definition: Song.h:106
void setArtist(const string &artist)
Definition: Song.h:74
string getLyrics() const
Definition: Song.h:114
Song(const string &artist, const string &song, const string &album, const string &lyrics, const string &release_date)
Song constructor.
Definition: Song.h:54
string getSongTitle() const
Definition: Song.h:82
A Song object, used along with the Songs data source.
Definition: Song.h:28
void setReleaseDate(const string &release_date)
Definition: Song.h:138
string getReleaseDate() const
Definition: Song.h:130
string getArtist() const
Definition: Song.h:65
string getAlbumTitle() const
Definition: Song.h:99
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:40
void setSongTitle(const string &song)
Definition: Song.h:90
void setLyrics(const string &lyrics)
Definition: Song.h:122