diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-04 02:10:27 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-04 02:10:27 +0100 |
commit | b73c8b20a034a4e8ac9ab8740453e35160c20833 (patch) | |
tree | 350302168da233ddc1eed20ee4bc4ca1fa2c9467 /tag.h | |
parent | 8149e0487f6e658af71339f41a4f2f8413876cf0 (diff) |
Implemented music::update(), needs some work to make queries work on different engines.
Diffstat (limited to 'tag.h')
-rw-r--r-- | tag.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,13 +1,24 @@ #ifndef TAG_H #define TAG_H +#include <boost/shared_ptr.hpp> + #include <string> #include <map> class Tag { public: + typedef boost::shared_ptr<Tag> p; typedef std::map<std::string, std::string> Fields; + + //! Tag fields. Fields fields; + + //! Generic tag loader. + static p load(const std::string filename); + + //! Check for the existence of a specific field. + bool has_field(const std::string name); }; class ID3Tag : public Tag { |