diff options
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 { |