Example #1
0
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();
}
Example #2
0
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;
}