diff options
author | vng <viktor.govako@gmail.com> | 2013-09-25 15:14:29 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:02:42 +0300 |
commit | 6766d52a7b13556b4d8af2f50ea7817b924e4f99 (patch) | |
tree | 64d78cc19dceee5fa40ad2ba38e07762895086ee /indexer/data_header.hpp | |
parent | 0b5feff580e34e7d1f2720114e2a16d2760463dc (diff) |
Old apps can read header and skip mwm's with new data format, since now.
Diffstat (limited to 'indexer/data_header.hpp')
-rw-r--r-- | indexer/data_header.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/data_header.hpp b/indexer/data_header.hpp index 88a80d555e..499fde49ba 100644 --- a/indexer/data_header.hpp +++ b/indexer/data_header.hpp @@ -67,7 +67,9 @@ namespace feature v3, // March 2013 (store type index, instead of raw type in search data) lastVersion = v3 }; + inline Version GetVersion() const { return m_ver; } + inline bool IsMWMSuitable() const { return (m_ver <= lastVersion); } /// @name Serialization //@{ @@ -77,7 +79,8 @@ namespace feature void LoadVer1(ModelReaderPtr const & r); //@} - enum MapType { + enum MapType + { world, worldcoasts, country |