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:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2016-03-23 15:05:22 +0300
committerVladiMihaylenko <vxmihaylenko@gmail.com>2016-03-23 17:49:05 +0300
commit73d25ca456e5c6398ea751ba125c82a456a098ec (patch)
tree44e07075ce8c5425288c8effb92ee5015b1edfb0 /indexer/feature_decl.cpp
parent447bd48bbcc182bafbc73103507fc0998d2e1afc (diff)
[omim] Added helper method for getting mwm name and mwm version.
Diffstat (limited to 'indexer/feature_decl.cpp')
-rw-r--r--indexer/feature_decl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indexer/feature_decl.cpp b/indexer/feature_decl.cpp
index fec8472d45..e6f8ff2d4e 100644
--- a/indexer/feature_decl.cpp
+++ b/indexer/feature_decl.cpp
@@ -20,3 +20,13 @@ string DebugPrint(feature::EGeomType type)
case EGeomType::GEOM_AREA: return "GEOM_AREA";
}
}
+
+pair<FeatureID::MwmName, FeatureID::MwmVersion> FeatureID::GetMwmNameAndVersion() const
+{
+ if (!IsValid())
+ return {"INVALID", 0};
+
+ auto const & mwmInfo = m_mwmId.GetInfo();
+ return {mwmInfo->GetCountryName(), mwmInfo->GetVersion()};
+}
+