aboutsummaryrefslogtreecommitdiff
path: root/composer/HasMeta.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'composer/HasMeta.hpp')
-rw-r--r--composer/HasMeta.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/composer/HasMeta.hpp b/composer/HasMeta.hpp
new file mode 100644
index 0000000..5bd74bb
--- /dev/null
+++ b/composer/HasMeta.hpp
@@ -0,0 +1,24 @@
+#ifndef COMPOSER_HASMETA_H_INCLUDED
+#define COMPOSER_HASMETA_H_INCLUDED
+
+#include <map>
+#include <string>
+
+using std::map;
+using std::string;
+
+class HasMeta
+{
+private:
+ map<string,string> meta;
+public:
+ bool hasMeta(const string &key);
+ const string getMeta(const string &key);
+ void setMeta(const string &key, const string &value);
+
+ typedef map<string,string>::const_iterator meta_iterator;
+ inline meta_iterator meta_begin() const {return meta.begin();}
+ inline meta_iterator meta_end() const {return meta.end();}
+};
+
+#endif // COMPOSER_HASMETA_H_INCLUDED