/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
indexer/feature_decl.cpp
43 строки
891 B
Arsentiy Milchakov
[indexer] enum feature::EGeomType is changed to enum class feature::GeomType
18 апр 2019, 16:53
18 апр 2019, 16:53
0b9a22e
Код
Авторство
О чём код?
#include "indexer/feature_decl.hpp" #include <sstream> using namespace std; namespace feature { string DebugPrint(GeomType type) { switch (type) { case GeomType::Undefined: return "Undefined"; case GeomType::Point: return "Point"; case GeomType::Line: return "Line"; case GeomType::Area: return "Area"; } UNREACHABLE(); } } // namespace feature string DebugPrint(FeatureID const & id) { ostringstream ss; ss << "{ " << DebugPrint(id.m_mwmId) << ", " << id.m_index << " }"; return ss.str(); } // static char const * const FeatureID::kInvalidFileName = "INVALID"; // static int64_t const FeatureID::kInvalidMwmVersion = -1; string FeatureID::GetMwmName() const { return IsValid() ? m_mwmId.GetInfo()->GetCountryName() : kInvalidFileName; } int64_t FeatureID::GetMwmVersion() const { return IsValid() ? m_mwmId.GetInfo()->GetVersion() : kInvalidMwmVersion; }