diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-18 03:36:20 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:45 +0100 |
commit | 12d546dcccfb5098184e26e97985355bd49364cb (patch) | |
tree | cf9692e33152accd98a84c5158d61c96d45ef26a | |
parent | 5a7d9e906760878a8edd833878e89ca5d7fd3262 (diff) | |
download | usdx-12d546dcccfb5098184e26e97985355bd49364cb.tar.gz usdx-12d546dcccfb5098184e26e97985355bd49364cb.tar.xz usdx-12d546dcccfb5098184e26e97985355bd49364cb.zip |
added missing getter for song header values
-rw-r--r-- | src/base/song.cpp | 72 | ||||
-rw-r--r-- | src/base/song.hpp | 16 |
2 files changed, 40 insertions, 48 deletions
diff --git a/src/base/song.cpp b/src/base/song.cpp index a21a88c0..45d7a14a 100644 --- a/src/base/song.cpp +++ b/src/base/song.cpp @@ -216,11 +216,10 @@ namespace usdx return last_bpm; } - // TODO - // const float Song::get_gap(void) const - // { - // return gap; - // } + const float Song::get_gap(void) const + { + return gap; + } const std::string& Song::get_cover(void) const { @@ -237,11 +236,10 @@ namespace usdx return video; } - // TODO - // const float Song::get_videogap(void) const - // { - // return videogap; - // } + const float Song::get_video_gap(void) const + { + return video_gap; + } const std::string& Song::get_genre(void) const { @@ -263,41 +261,35 @@ namespace usdx return language; } - // TODO - // const int Song::get_year(void) const - // { - // return year; - // } + const int Song::get_year(void) const + { + return year; + } - // TODO - // const float Song::get_start(void) const - // { - // return start; - // } + const float Song::get_start(void) const + { + return start; + } - // TODO - // const int Song::get_end(void) const - // { - // return end; - // } + const int Song::get_stop(void) const + { + return stop; + } - // TODO - // const int Song::get_resolution(void) const - // { - // return resolution; - // } + const int Song::get_resolution(void) const + { + return resolution; + } - // TODO - // const int Song::get_notesgap(void) const - // { - // return notesgap; - // } + const int Song::get_notes_gap(void) const + { + return notes_gap; + } - // TODO - // const bool Song::get_relative(void) const - // { - // return relative; - // } + const bool Song::get_relative(void) const + { + return relative; + } // TODO: filetype // const std::string& Song::get_encoding(void) const diff --git a/src/base/song.hpp b/src/base/song.hpp index 92e67c30..d7ed8c98 100644 --- a/src/base/song.hpp +++ b/src/base/song.hpp @@ -104,21 +104,21 @@ namespace usdx const std::string& get_artist(void) const; const std::string& get_mp3(void) const; const float get_bpm(int beat) const; - // const float get_gap(void) const; + const float get_gap(void) const; const std::string& get_cover(void) const; const std::string& get_background(void) const; const std::string& get_video(void) const; - // const float get_videogap(void) const; + const float get_video_gap(void) const; const std::string& get_genre(void) const; const std::string& get_edition(void) const; const std::string& get_creator(void) const; const std::string& get_language(void) const; - // const int get_year(void) const; - // const float get_start(void) const; - // const int get_end(void) const; - // const int get_resolution(void) const; - // const int get_notesgap(void) const; - // const bool get_relative(void) const; + const int get_year(void) const; + const float get_start(void) const; + const int get_stop(void) const; + const int get_resolution(void) const; + const int get_notes_gap(void) const; + const bool get_relative(void) const; // TODO: encoding class // const std::string& get_encoding(void) const; |