diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-27 02:07:03 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-27 02:07:03 +0100 |
commit | 6e376f69305dabe59362bb80051e4265c6409fe3 (patch) | |
tree | cb3ca8667e858072cd8508d7df3056e073f45d79 /music.h | |
parent | 9e411c8fe5f3a7b507bca0c4e132454d7d57650c (diff) |
Use boost::filesystem.
Diffstat (limited to 'music.h')
-rw-r--r-- | music.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -1,13 +1,15 @@ #ifndef MUSIC_H #define MUSIC_H -#include <string> +#include <boost/filesystem.hpp> #include <vector> +namespace fs = boost::filesystem; + class MusicTrack { public: - MusicTrack(const std::string filename); - std::string filename; + MusicTrack(const fs::path path); + fs::path path; }; class MusicDirectory; @@ -16,15 +18,15 @@ typedef std::vector<MusicTrack> MusicTracks; class MusicDirectory { public: - MusicDirectory(const std::string root); - std::string path; + MusicDirectory(const fs::path root); + fs::path path; MusicDirectories directories; MusicTracks tracks; }; namespace music { extern MusicDirectory *root_directory; - void init(const std::string root); + void init(const fs::path root); }; #endif |