summaryrefslogtreecommitdiff
path: root/tag.h
diff options
context:
space:
mode:
Diffstat (limited to 'tag.h')
-rw-r--r--tag.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tag.h b/tag.h
index 83a1f6d..e844500 100644
--- a/tag.h
+++ b/tag.h
@@ -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 {