Tags: make constructible with initializer lists

This commit is contained in:
rr- 2016-03-16 19:10:30 +01:00
parent fc2a4cb41c
commit 74904fd516
2 changed files with 11 additions and 0 deletions

View File

@ -14,6 +14,14 @@ static bool iequals(const std::string &a, const std::string &b)
return true;
}
Tags::Tags()
{
}
Tags::Tags(const std::vector<Tag> &tags) : tags(tags)
{
}
const std::vector<Tag> Tags::get_all() const
{
return tags;

View File

@ -16,6 +16,9 @@ namespace opustags {
class Tags final
{
public:
Tags();
Tags(const std::vector<Tag> &tags);
const std::vector<Tag> get_all() const;
std::string get(const std::string &key) const;