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.hpp
parent447bd48bbcc182bafbc73103507fc0998d2e1afc (diff)
[omim] Added helper method for getting mwm name and mwm version.
Diffstat (limited to 'indexer/feature_decl.hpp')
-rw-r--r--indexer/feature_decl.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indexer/feature_decl.hpp b/indexer/feature_decl.hpp
index b28cfd2baa..2f35841e98 100644
--- a/indexer/feature_decl.hpp
+++ b/indexer/feature_decl.hpp
@@ -4,6 +4,7 @@
#include "std/cstdint.hpp"
#include "std/string.hpp"
+#include "std/utility.hpp"
namespace feature
{
@@ -21,6 +22,9 @@ string DebugPrint(feature::EGeomType type);
struct FeatureID
{
+ using MwmName = string;
+ using MwmVersion = int64_t;
+
MwmSet::MwmId m_mwmId;
uint32_t m_index;
@@ -44,5 +48,7 @@ struct FeatureID
inline bool operator!=(FeatureID const & r) const { return !(*this == r); }
+ pair<MwmName, MwmVersion> GetMwmNameAndVersion() const;
+
friend string DebugPrint(FeatureID const & id);
};