My Project
song.hpp
1 #ifndef __SONG_HPP__
2 #define __SONG_HPP__
3 
4 #include <string>
5 
10 class Song {
11 
12 public:
13 
17  Song()
18  : url("https://www.youtube.com/watch?v=dQw4w9WgXcQ"), // Defualt URL is a rick roll
19  user("Rick Astley"),
20  taste(0.0)
21  {}
22 
29  Song(std::string url, std::string user)
30  : url(url), user(user)
31  {}
32 
36  std::string getUrl(void) { return url; }
37 
41  std::string getUser(void) { return user; }
42 
49  int getTaste(void) { return taste; }
50 
56  void setTaste(int t) { taste = t; }
57 
58 private:
59  std::string url;
60  std::string user;
61  int taste;
62 };
63 
64 #endif /* __SONG_HPP__ */
void setTaste(int t)
Definition: song.hpp:56
Definition: song.hpp:10
Song()
Definition: song.hpp:17
std::string getUrl(void)
Definition: song.hpp:36
int getTaste(void)
Definition: song.hpp:49
std::string getUser(void)
Definition: song.hpp:41
Song(std::string url, std::string user)
Definition: song.hpp:29