Files
comaps/search/displayed_categories.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

43 lines
1.1 KiB
C++

#include "search/displayed_categories.hpp"
#include "base/macros.hpp"
#include <algorithm>
namespace search
{
DisplayedCategories::DisplayedCategories(CategoriesHolder const & holder) : m_holder(holder)
{
m_keys = {"category_eat",
"category_hotel",
"category_food",
"category_tourism",
"category_wifi",
"category_transport",
"category_fuel",
"category_parking",
"category_shopping",
"category_secondhand",
"category_atm",
"category_nightlife",
"category_children",
"category_bank",
"category_entertainment",
"category_water",
"category_hospital",
"category_pharmacy",
"category_recycling",
"category_rv",
"category_police",
"category_toilet",
"category_post"};
}
void DisplayedCategories::Modify(CategoriesModifier & modifier)
{
modifier.Modify(m_keys);
}
std::vector<std::string> const & DisplayedCategories::GetKeys() const { return m_keys; }
} // namespace search