Files
comaps/indexer/isolines_info.cpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

27 lines
650 B
C++

#include "indexer/isolines_info.hpp"
#include "indexer/data_source.hpp"
#include "defines.hpp"
namespace isolines
{
bool LoadIsolinesInfo(DataSource const & dataSource, MwmSet::MwmId const & mwmId,
IsolinesInfo & info)
{
auto const handle = dataSource.GetMwmHandleById(mwmId);
if (!handle.IsAlive())
return false;
auto const & value = *handle.GetValue();
if (!value.m_cont.IsExist(ISOLINES_INFO_FILE_TAG))
return false;
auto readerPtr = value.m_cont.GetReader(ISOLINES_INFO_FILE_TAG);
Deserializer deserializer(info);
return deserializer.Deserialize(*readerPtr.GetPtr());
}
} // namespace isolines