From f5d2afb357c7581536da91022986872cd41b68d3 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 15 Jan 2010 05:10:30 +0100 Subject: added txt header loading with test and some preparations for loading notes --- src/base/song.hpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/base/song.hpp') diff --git a/src/base/song.hpp b/src/base/song.hpp index 90226932..ae9c3f24 100644 --- a/src/base/song.hpp +++ b/src/base/song.hpp @@ -28,12 +28,18 @@ #define SONG_HPP #include +#include +#include namespace usdx { class Song { private: + static log4cxx::LoggerPtr log; + + std::string filename; + std::string title; std::string artist; @@ -62,12 +68,21 @@ namespace usdx bool relative; int resolution; // TODO: bpm: array of TBPM + std::string bpm; // TODO: list of LyricLines // TODO: Encoding: TEncoding; - // TODO: CustomTags: array of TCustomHeaderTag; + std::map custom_header_tags; + + std::string get_header_tag(const std::string& tag, const bool required = false); public: + const std::string& get_filename(void); + + Song(const std::string& filename, const std::map& header); + + const std::string& get_title(void); + const std::string& get_artist(void); }; }; -- cgit v1.2.3