diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2016-01-22 08:02:36 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:14:53 +0300 |
commit | c562106261eaf0e25f210a01462f42e51626c832 (patch) | |
tree | 3e931b44b87830fc975628c157b08f887145fd9c /platform/mwm_version.hpp | |
parent | 3a316e1cb47a68eb61c9c14d4c353964fcfea257 (diff) |
[Old map downloader] Implementation of IsSingleMwm function.
Diffstat (limited to 'platform/mwm_version.hpp')
-rw-r--r-- | platform/mwm_version.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/platform/mwm_version.hpp b/platform/mwm_version.hpp index c49a17fa6d..db6870f950 100644 --- a/platform/mwm_version.hpp +++ b/platform/mwm_version.hpp @@ -44,4 +44,19 @@ bool ReadVersion(FilesContainerR const & container, MwmVersion & version); /// Helper function that is used in FindAllLocalMaps. uint32_t ReadVersionTimestamp(ModelReaderPtr const & reader); + +/// \returns true if version is version of an mwm which was generated after small mwm update. +/// This means it contains routing file as well. +bool IsSingleMwm(int64_t version); + +/// \brief This enum sets constants which are used for writing test to set a version of mwm +/// which should be processed as either single or two components (mwm and routing) mwms. +enum ForTesting +{ + FOR_TESTING_TWO_COMPONENT_MWM1 = 10, + FOR_TESTING_TWO_COMPONENT_MWM2, + FOR_TESTING_SINGLE_MWM1 = 991215, + FOR_TESTING_SINGLE_MWM2, + FOR_TESTING_SINGLE_MWM_LATEST, +}; } // namespace version |