Added AddressInfo::FormatTypes()

This commit is contained in:
Alex Zolotarev 2012-05-14 18:11:33 +03:00 committed by Alex Zolotarev
parent bb9a614eda
commit 708e96f839
2 changed files with 13 additions and 0 deletions

View file

@ -426,3 +426,15 @@ string Framework::AddressInfo::FormatAddress() const
}
return result;
}
string Framework::AddressInfo::FormatTypes() const
{
string result;
for (size_t i = 0; i < m_types.size(); ++i)
{
if (!result.empty())
result += ' ';
result += m_types[i];
}
return result;
}

View file

@ -222,6 +222,7 @@ public:
vector<string> m_types;
string FormatAddress() const;
string FormatTypes() const;
};
/// Get address information for point on map.