diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-03-23 15:05:22 +0300 |
---|---|---|
committer | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-03-23 17:49:05 +0300 |
commit | 73d25ca456e5c6398ea751ba125c82a456a098ec (patch) | |
tree | 44e07075ce8c5425288c8effb92ee5015b1edfb0 /indexer/feature_decl.hpp | |
parent | 447bd48bbcc182bafbc73103507fc0998d2e1afc (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.hpp | 6 |
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); }; |