Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2014-12-12 16:00:53 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:35:24 +0300
commitebf94896845e189fc9fbab187eb88b2f2b233324 (patch)
tree1d673cf95ad6f79c349bf7d2244ede0bc80d2ec7 /indexer/feature_data.cpp
parentb79ade75a8885d627646c474bbc5f04c268de5ef (diff)
Add read/write temporary feature state with additional info
Diffstat (limited to 'indexer/feature_data.cpp')
-rw-r--r--indexer/feature_data.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indexer/feature_data.cpp b/indexer/feature_data.cpp
index fae0aa29b3..586c548691 100644
--- a/indexer/feature_data.cpp
+++ b/indexer/feature_data.cpp
@@ -168,6 +168,20 @@ bool FeatureParams::AddHouseName(string const & s)
return false;
}
+bool FeatureParams::AddAdditionalInfo(additional_info_types type, string const &s)
+{
+ if (m_additional_info[type].empty())
+ {
+ m_additional_info[type] = s;
+ }
+ else
+ {
+ m_additional_info[type] = m_additional_info[type] + ", " + s;
+ }
+ return true;
+}
+
+
bool FeatureParams::AddHouseNumber(string const & ss)
{
if (!feature::IsHouseNumber(ss))