String VersionInfo::FormatTagsString(const TagsMap& tags) { std::stringstream ss; for (TagsMap::const_iterator it = tags.begin(); it != tags.end(); ++it) { ss << it->first << " (" << it->second << ")" << std::endl; } return ss.str(); }
VersionInfo::TagsMap VersionInfo::GetTagsDiff(const TagsMap& from, const VersionInfo::TagsMap& what) { TagsMap result; for (TagsMap::const_iterator it = from.begin(); it != from.end(); it++) { if (what.find( it->first ) == what.end()) { result.insert(TagsMap::value_type(it->first,it->second)); } } return result; }