aboutsummaryrefslogtreecommitdiff
path: root/composer/HasMeta.hpp
blob: 5bd74bb727997530271369414a2cad47108ea373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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