From a073f3e02752b0483e6a9301cbf02695239c7783 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 13 Feb 2010 13:58:51 +0100 Subject: changed all song paths to boost::filesystem::wpath all song paths are now wpath so all extensions are also std::wstring and all logging with song filename have to be also std::wstring --- src/base/song.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/base/song.hpp') diff --git a/src/base/song.hpp b/src/base/song.hpp index d9a6271c..2217e244 100644 --- a/src/base/song.hpp +++ b/src/base/song.hpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include "bpm.hpp" #include "lyric_line.hpp" @@ -60,7 +61,7 @@ namespace usdx private: static log4cxx::LoggerPtr log; - std::string filename; + boost::filesystem::wpath filename; std::wstring title; std::wstring artist; @@ -114,10 +115,12 @@ namespace usdx // TODO: Encoding: TEncoding; public: - Song(const std::string& filename, const std::map& header); + Song(const boost::filesystem::wpath& filename, + const std::map& header); + virtual ~Song(void); - const std::string& get_filename(void) const; + const boost::filesystem::wpath& get_filename(void) const; const std::wstring& get_title(void) const; const std::wstring& get_artist(void) const; -- cgit v1.2.3