Mercurial > minori
annotate include/track/media.h @ 135:0a458cb26ff4
filesystem: move to using std::filesystem after C++17 switch
old compilers will croak compiling this, but it's not like we
*really* need to support them (they probably croak compiling
Qt as well)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Thu, 09 Nov 2023 18:01:56 -0500 |
| parents | ab191e28e69d |
| children | 28842a8d0c6b |
| rev | line source |
|---|---|
| 64 | 1 #ifndef __track__media_h |
| 2 #define __track__media_h | |
| 3 #include "core/filesystem.h" | |
| 80 | 4 #include <unordered_map> |
| 64 | 5 |
| 6 namespace Track { | |
| 7 namespace Media { | |
| 8 | |
|
135
0a458cb26ff4
filesystem: move to using std::filesystem after C++17 switch
Paper <mrpapersonic@gmail.com>
parents:
114
diff
changeset
|
9 std::filesystem::path GetCurrentPlaying(); |
|
0a458cb26ff4
filesystem: move to using std::filesystem after C++17 switch
Paper <mrpapersonic@gmail.com>
parents:
114
diff
changeset
|
10 std::unordered_map<std::string, std::string> GetFileElements(const std::string& basename); |
|
0a458cb26ff4
filesystem: move to using std::filesystem after C++17 switch
Paper <mrpapersonic@gmail.com>
parents:
114
diff
changeset
|
11 std::unordered_map<std::string, std::string> GetFileElements(const std::filesystem::path& path); |
| 64 | 12 |
| 13 } // namespace Media | |
| 14 } // namespace Track | |
| 15 | |
| 16 #endif // __track__media_h |
