#include "tk_shim.hpp" namespace taglib_shim { Property::Property(TagLib::String key, TagLib::StringList value) : key_(key), value_(value) {} const TagLib::String &Property::key() const { return key_; } const TagLib::StringList &Property::value() const { return value_; } std::unique_ptr> SimplePropertyMap_to_vector(const TagLib::SimplePropertyMap &map) { std::unique_ptr> result = std::make_unique>(); for (const auto &pair : map) { result->push_back(Property(pair.first, pair.second)); } return result; } std::unique_ptr> StringList_to_vector(const TagLib::StringList &list) { std::unique_ptr> result = std::make_unique>(); for (const auto &str : list) { result->push_back(str); } return result; } }