/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
routing/restriction_loader.hpp
39 строк
1 KB
Maxim Pimenov
[coding] Changed the filenames of the FilesContainers to better reflect the class names.
20 сен 2019, 18:29
20 сен 2019, 18:29
ab23306
Код
Авторство
О чём код?
#pragma once #include "routing/index_graph.hpp" #include "routing/restrictions_serialization.hpp" #include "coding/files_container.hpp" #include <memory> #include <string> class MwmValue; namespace routing { class RestrictionLoader { public: explicit RestrictionLoader(MwmValue const & mwmValue, IndexGraph & graph); bool HasRestrictions() const; RestrictionVec && StealRestrictions(); std::vector<RestrictionUTurn> && StealNoUTurnRestrictions(); private: std::unique_ptr<FilesContainerR::TReader> m_reader; RestrictionHeader m_header; RestrictionVec m_restrictions; std::vector<RestrictionUTurn> m_noUTurnRestrictions; std::string const m_countryFileName; }; void ConvertRestrictionsOnlyToNo(IndexGraph const & graph, RestrictionVec const & restrictionsOnly, RestrictionVec & restrictionsNo); void ConvertRestrictionsOnlyUTurnToNo(IndexGraph & graph, std::vector<RestrictionUTurn> const & restrictionsOnlyUTurn, RestrictionVec & restrictionsNo); } // namespace routing