aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/song.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-02-13 13:58:51 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:46 +0100
commita073f3e02752b0483e6a9301cbf02695239c7783 (patch)
tree74f973f6bdc3b5ad9ea53df9061fcf279568ef41 /src/base/song.hpp
parent2b1073a98ccf6ab97df1c7a05d2d5fe12982da07 (diff)
downloadusdx-a073f3e02752b0483e6a9301cbf02695239c7783.tar.gz
usdx-a073f3e02752b0483e6a9301cbf02695239c7783.tar.xz
usdx-a073f3e02752b0483e6a9301cbf02695239c7783.zip
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
Diffstat (limited to '')
-rw-r--r--src/base/song.hpp9
1 files changed, 6 insertions, 3 deletions
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 <string>
#include <map>
#include <list>
+#include <boost/filesystem.hpp>
#include <log4cxx/logger.h>
#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<std::wstring, std::wstring>& header);
+ Song(const boost::filesystem::wpath& filename,
+ const std::map<std::wstring, std::wstring>& 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;